fontlabapp.studios.mark_attachment.align
align
Align by anchor tab (Scriptmix Components ยท Align By Anchor): move mark components onto their base anchors.
The original's rules are kept unchanged (anchor_points, base_layer,
pairs, align_changes, families): the first component is the
base; each later component moves so that its _X anchor sits on the
base's X (rounded half up); "no matching anchors", "scaled or slanted,
kept" and "in place" rows are listed and not written. Anchor pair:
"Automatic (first matching pair)" or one named pair; masters: current
(default) or all. Apply writes the listed offsets as one
Mark Attachment: align components <subject> Undo step.
Classes
Complete member index
Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.
| Member | Kind | Signature | Summary |
|---|---|---|---|
AUTOMATIC |
attribute | ||
align_changes |
function | (package: Any, layer: Any, master: str, wanted: str | None) -> list[component_writer.Change] |
One row per mark component: anchor pair, current and new offset. |
anchor_points |
function | (layer: Any | None) -> dict[str, tuple[float, float]] |
{name: (x, y)} of the layer. |
base_layer |
function | (package: Any, shape: Any, master: str) -> Any | None |
The layer that a component shows: its base glyph on this master. |
component_writer |
attribute | (shared captured text) | |
families |
function | (package: Any, glyphs: Iterable[Any], master: str) -> list[str] |
Anchor pairs any selected composite could use on master, in order. |
pairs |
function | (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. |