Skip to content

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

component_groups(layer: Layer) -> tuple[list[Group], list[Change]]

Selected component rectangles; their base outlines are never edited.

contour_groups

contour_groups(layer: Layer, s: int, c: int, all_nodes: bool, distribute: bool) -> list[Group]

Pair each selected on-curve node with its unselected adjacent controls (whole contours move as units).

group_steps

group_steps(layer: Layer, group: Group, dx: float, dy: float) -> tuple

node_groups

node_groups(layer: Layer, all_nodes: bool, distribute: bool) -> tuple[list[Group], list[Change]]

nudge_changes

nudge_changes(layer: Layer, dx: float, dy: float) -> list[Change]

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_changes(layer: Layer, angle: float) -> list[Change]

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.

position

position(points: Sequence[XY], axis: int, fraction: float) -> float

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.

simplify_changes

simplify_changes(layer: Layer, reference: Layer | None = None) -> list[Change]

Simplify Selected Nodes: remove alternate selected nodes, using the reference (preview master) selection.