Skip to content

fontlabapp.studios.layer_manager.copy_masters · declarations 001

Back to fontlabapp.studios.layer_manager.copy_masters

TITLE module-attribute

TITLE

copy_pairs

copy_pairs(tool: Any, pairs: Sequence[Pair], title: str = TITLE) -> dict[str, Any] | None

Write the planned pairs as ONE Undo step and read them back (the original's copy_pairs).

The original's mutate and read-back, verbatim; the step goes through tool.shell.history titled title (None when refused).

plan_anchors

plan_anchors(source: Any, target: Any) -> tuple[tuple[Move, ...], tuple[str, ...], str]

Return (moves, missing names, problem) for same-named anchors.

problem is empty, or says why the layer must be skipped.

plan_pair

plan_pair(glyph: Any, master: str, source: Any, target: Any, anchors: bool, width: bool, reason: str) -> Pair

Plan one pair. reason is the geometry refusal of the glyph, or "".

survey

survey(package: Any, names: Sequence[str], source_master: str, targets: Sequence[str], anchors: bool, width: bool, facts: Any) -> list[Pair]

Plan every glyph and target master. Change nothing.

A glyph without a source layer or without a target layer gives no row.