Skip to content

fontlabapp.studios.transform_studio.model · declarations 001

Back to fontlabapp.studios.transform_studio.model

EMPTY_NOTE module-attribute

EMPTY_NOTE

FINITE_ANGLE module-attribute

FINITE_ANGLE

FLATTEN_ERROR module-attribute

FLATTEN_ERROR

MOVE_RANGE module-attribute

MOVE_RANGE

PRESETS module-attribute

PRESETS

REFLECTIONS module-attribute

REFLECTIONS

ROTATE_DEFAULT module-attribute

ROTATE_DEFAULT

ROTATE_RANGE module-attribute

ROTATE_RANGE

SCALE_RANGE module-attribute

SCALE_RANGE

SKEW_RANGE module-attribute

SKEW_RANGE

SLANT_DEFAULT module-attribute

SLANT_DEFAULT

SLANT_ERROR module-attribute

SLANT_ERROR

SLANT_RANGE module-attribute

SLANT_RANGE

SMART_ERROR module-attribute

SMART_ERROR

SMART_RANGE module-attribute

SMART_RANGE

layer_box

layer_box(layer: Layer) -> tuple[float, float, float, float] | None

(x, y, w, h) of the own outlines and component boxes, like layer.boundingBox.

linear

linear(sx: float, sy: float, skew: float, rotate: float) -> Affine

Scale (percent), then skew (degrees), then rotate (degrees, CCW).

mapper

mapper(lin: Affine, origin: tuple[float, float], move: tuple[float, float]) -> Affine

lin around origin, then the move.

origin_of

origin_of(layer: Layer, choice: int) -> tuple[float, float] | None

The transform origin for ORIGINS[choice]; None when a box is needed but the layer is empty.

rotation_linear

rotation_linear(angle: float) -> Affine

The linear part of a counter-clockwise rotation by angle degrees (Rotate Selection).

selection_changes

selection_changes(layer: Layer, lin: Affine) -> list[Change]

Rotate or reflect the selected nodes and components about the selection centre.

selection_matrix

selection_matrix(lin: Affine, origin: tuple[float, float]) -> Affine

slant_changes

slant_changes(layer: Layer, angle: float, pivot_y: float, anchors: bool) -> list[Change]

slant_matrix

slant_matrix(angle: float, pivot_y: float) -> Affine

smart_changes

smart_changes(layer: Layer, angle: float, sidebearings: bool, anchors: bool) -> list[Change] | str

Smart Slant: shear about a third of the ink height, then keep sidebearings or the ink centre.

smart_check

smart_check(angle: float) -> None

transform_planner_changes

transform_planner_changes(layer: Layer, lin: Affine, choice: int, move: tuple[float, float], anchors: bool) -> list[Change] | str