Skip to content

fontlabapp.components.writer.EjectEditor · declarations 001

Back to fontlabapp.components.writer.EjectEditor

__init__

__init__(unlock: bool) -> None

unlock True: the new contours are unlocked (FontLab's Decompose).

check

check(prepared: list[tuple[Any, list[Any]]]) -> list[str]

Return "layer/base" of each component that is still there or not replaced.

prepare

prepare(layer: Any, edits: list[Any]) -> list[Any]

Return (component, copies, placed) per edit, built before history.

retain

retain(steps: list[Any]) -> list[Any]

Each removed component with its data and builder, read before the write.

write

write(layer: Any, steps: list[Any]) -> None

Remove each component and insert its copies at its place.