Skip to content

fontlabapp.fontui.teaching_writers.copy_layers_from_font · declarations 001

Back to fontlabapp.fontui.teaching_writers.copy_layers_from_font

KEY

KEY

MODES module-attribute

MODES

TITLE

TITLE

apply_plan

apply_plan(plan: dict[str, Any], confirmed: bool) -> dict[str, Any]

Recheck the visible plan and write one destination Undo step.

checked_name

checked_name(name: str) -> str

Reject recipe, temporary and lossy text syntax before any write.

clone_shapes

clone_shapes(layer: Any) -> list[Any]

Restore clone losses through contour_copy before history starts.

collision

collision(name: str, suffix: str, mode: str, exists: bool) -> tuple[str, str | None]

Return the incoming name and optional destination backup name.

layer_data

layer_data(layer: Any, deadline: float) -> dict[str, Any]

Snapshot each nodes() once; never use Python wrapper identity as a key.

main

main() -> None

Contain startup errors; the App guards owned signal callbacks.

make_plan

make_plan(source_id: int, destination_id: int, names: list[str], mappings: list[tuple[str, str]], mode: str, suffix: str) -> dict[str, Any]

Run one destination dependency scan per explicit Preview.

panel_type

panel_type() -> type

Build the non-modal mapping editor; only Preview and Copy scan dependencies.

registered_fonts

registered_fonts() -> dict[int, tuple[str, Any]]

Read registered packages without activating or completing any source font.

resolve

resolve(source_id: int, destination_id: int) -> tuple[Any, Any]

Require two registered fonts, equal units per em and the current destination.

survey

survey(source: Any, destination: Any, names: list[str], mappings: list[tuple[str, str]], mode: str, suffix: str, facts: Any) -> list[dict[str, Any]]

Keep every refused glyph/layer row; plan only the selected destination names.

usable

usable(layer: Any, *, source: bool) -> None

Refuse content the copy cannot preserve, rather than silently dropping it.