Skip to content

fontlabapp.components.writer.EjectEditor

EjectEditor

Swap each planned component for the copies of its parts.

Edits are component shape ids. prepare builds the copies before history. write removes the component and inserts the copies at its place. check confirms that the component is gone and every copy is in the layer.

Source bases

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
__init__ function (self, unlock: bool) -> None unlock True: the new contours are unlocked (FontLab's Decompose).
check function (self, prepared: list[tuple[Any, list[Any]]]) -> list[str] Return "layer/base" of each component that is still there or not replaced.
prepare function (self, layer: Any, edits: list[Any]) -> list[Any] Return (component, copies, placed) per edit, built before history.
retain function (self, steps: list[Any]) -> list[Any] Each removed component with its data and builder, read before the write.
write function (self, layer: Any, steps: list[Any]) -> None Remove each component and insert its copies at its place.