Skip to content

fontlabapp.fonts.revisions.model · declarations 001

Back to fontlabapp.fonts.revisions.model

MATRIX_FIELDS module-attribute

MATRIX_FIELDS

TRANSIENT_NODE_FLAGS module-attribute

TRANSIENT_NODE_FLAGS

capture

capture(workspace: Any, font_id: int, master: str, *, components: bool = True) -> RevisionSnapshot

Capture the explicit font/master twice; refuse an unstable or invalid read.

Includes all glyphs in font order, missing layers, raw ordered local contours, node types/state, closure/quadratic topology, full layer/shape 3×3 transforms, ordered anchor names/coordinates and optional component base/layer/transforms. Raw state includes selection; geometry excludes only four transient flags.

compare

compare(left: RevisionSnapshot, right: RevisionSnapshot) -> tuple[Difference, ...]

Compare only the named fields; raw_node_state includes transient selection.

font_choices

font_choices(workspace: Any) -> tuple[FontChoice, ...]

List explicitly registered fonts in workspace order, with master domains.

validate

validate(workspace: Any, snapshot: RevisionSnapshot) -> None

Reject any captured source/domain change, including raw selection flags.