Skip to content

fontlabapp.studios.mark_attachment._shared · declarations 001

Back to fontlabapp.studios.mark_attachment._shared

COLUMNS module-attribute

COLUMNS

STALE module-attribute

STALE

apply

apply(tool: Tool, action: str, dry: Dry, replan: Callable[[], Dry | None], edit: Any) -> bool

Write exactly the edits of dry as one named Undo step through tool.shell.history.

edit has prepare(layer, edits), write(layer, steps) and check(prepared, before) (the original writer's read-back). A live plan that differs from dry raises ValueError(STALE) before any write. Return True when FontLab committed; a refusal stays in the status line.

backends

backends() -> Any

core.scripting.mark_attachment_backends() (tests replace it).

dry_run

dry_run(writer: Any, package: Any, glyphs: list[Any], masters: list[str], planner: Callable[..., Any]) -> Dry

Plan once with writer.collect (the original's plan) and decide whether Apply may run.

label

label(action: str, names: Iterable[str]) -> str

Mark Attachment: <action> <subject>.