Skip to content

fontlabapp.fonts.revisions.model

model

Read-only comparison of named revision fields, never complete font equality.

All records contain immutable plain data. Native packages are promoted only from the registered workspace list; font_id is fgId, not the distinct flObject id. No master activation, glyph FontGate getter, history or persistence API is used.

Classes

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
MATRIX_FIELDS attribute
TRANSIENT_NODE_FLAGS attribute
capture function (workspace: Any, font_id: int, master: str, *, components: bool=True) -> RevisionSnapshot Capture the explicit font/master twice; refuse an unstable or invalid read.
compare function (left: RevisionSnapshot, right: RevisionSnapshot) -> tuple[Difference, ...] Compare only the named fields; raw_node_state includes transient selection.
font_choices function (workspace: Any) -> tuple[FontChoice, ...] List explicitly registered fonts in workspace order, with master domains.
validate function (workspace: Any, snapshot: RevisionSnapshot) -> None Reject any captured source/domain change, including raw selection flags.