fontlabapp.studios.align_nudge.model · declarations 001
Back to fontlabapp.studios.align_nudge.model
CONFLICT
module-attribute
CONFLICT
COORDINATE_RANGE
module-attribute
COORDINATE_RANGE
COUNTS
module-attribute
COUNTS
DISTRIBUTE_ALL
module-attribute
DISTRIBUTE_ALL
FINITE_RANGE
module-attribute
FINITE_RANGE
GEOMETRY
module-attribute
GEOMETRY
Group
module-attribute
Group
ITALIC_ERROR
module-attribute
ITALIC_ERROR
NUDGE_DEFAULT
module-attribute
NUDGE_DEFAULT
NUDGE_EMPTY
module-attribute
NUDGE_EMPTY
NUDGE_FINITE
module-attribute
NUDGE_FINITE
NUDGE_RANGE
module-attribute
NUDGE_RANGE
NUDGE_SELECT
module-attribute
NUDGE_SELECT
REFERENCES
module-attribute
REFERENCES
STRUCTURE
module-attribute
STRUCTURE
TWO_OWNERS
module-attribute
TWO_OWNERS
align_changes
align_changes(layer: Layer, mode: str, all_nodes: bool = False, coordinate: float | None = None) -> list[Change]
Align And Distribute plan_layer: align to the bounds or a coordinate, or distribute nodes.
Whole selected contours move as units, partial contours contribute selected nodes with their unselected handles, components move by their transform. Distribution sorts by the axis (ties keep contour/node order), keeps both endpoints and needs three or more items. Anchors never move.
component_groups
Selected component rectangles; their base outlines are never edited.
contour_groups
Pair each selected on-curve node with its unselected adjacent controls (whole contours move as units).
node_groups
nudge_changes
Interpolated Nudge: one row per closed cubic contour with selected on-curve nodes.
nudged
nudged(points: Sequence[tuple[float, float, bool]], selected: set[int], dx: float, dy: float) -> list[XY]
Scale cubic handles between simultaneously moved endpoints; factors clamp to 0…4 per axis.
outline_shapes
outline_shapes(layer: Layer) -> tuple[list[int], list[str]]
Indices of own contour shapes editable in place, and notes for shared or scaled/rotated ones.
overlap_changes
Overlap Nodes: move each selected tip's adjacent corner onto it and align the next handle.
The next corner is tried first, then the previous one. The corner becomes sharp; the handle x follows the master's italic angle (FontLab sign, negated), truncated to an integer in glyph space; handle y stays.
removals
removals(contour: Contour, selected: Sequence[int] | None = None) -> list[int]
Alternate selected indices of a polygon; open endpoints stay; closed keep ≥ 3 nodes, open ≥ 2.