Skip to content

fontlabapp.masters.layers.writer.Editor

Editor

Write strategy of one script: prepare, write and check.

prepare(layer, edits) returns the steps; it runs before any history. write(layer, steps) changes the layer, inside history. check(prepared) returns texts for steps that the font does not hold. retain(steps) returns the native objects that the write removes.

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
check function (self, prepared: list[tuple[Any, list[Any]]]) -> list[str] Return one text per step that the font does not hold.
prepare function (self, layer: Any, edits: list[Any]) -> list[Any] Return the steps for edits.
retain function (self, steps: list[Any]) -> list[Any] Native objects that the write removes and FontLab's Undo must keep.
write function (self, layer: Any, steps: list[Any]) -> None Change the layer.