Skip to content

fontlabapp.studios.mark_attachment.align · declarations 001

Back to fontlabapp.studios.mark_attachment.align

AUTOMATIC module-attribute

AUTOMATIC

align_changes

align_changes(package: Any, layer: Any, master: str, wanted: str | None) -> list[Change]

One row per mark component: anchor pair, current and new offset.

wanted None takes the first shared pair. A row without edit is shown only: no pair, a scaled component, or a mark that already sits right.

anchor_points

anchor_points(layer: Any | None) -> dict[str, tuple[float, float]]

{name: (x, y)} of the layer. Duplicate names: the first one wins.

base_layer

base_layer(package: Any, shape: Any, master: str) -> Any | None

The layer that a component shows: its base glyph on this master.

families

families(package: Any, glyphs: Iterable[Any], master: str) -> list[str]

Anchor pairs any selected composite could use on master, in order.

pairs

pairs(base: dict[str, tuple[float, float]], mark: dict) -> list[str]

Anchor names X with X on the base and _X on the mark, in base order.