Skip to content

fontlabapp.glyphs.common.model · declarations 001

Back to fontlabapp.glyphs.common.model

MARK_HOLD module-attribute

MARK_HOLD

analyze

analyze(fonts: tuple[Font, ...], metadata: Callable, *, check: Callable = lambda: None) -> dict

Build the full original report without selection/current-font prerequisites.

metadata(name, checkpoint=check) returns Production. Unknown mappings remain explicit placeholders. Nonexport/unencoded glyphs are never filtered. Every nonempty source string and every name retains its final source space.

checkpoint

checkpoint(deadline: float, clock: Callable = monotonic, cancelled: Callable = lambda: False) -> None

Refuse expired/cancelled work before publishing any partial report.

render

render(report: dict, *, check: Callable = lambda: None) -> str

Keep human-readable source sections plus exact escaped Unicode facts.

Qt plain-text copying can fold NBSP and line separators. ASCII JSON escapes preserve every source scalar there, including NUL/supplementary values. The complete bounded serialization precedes any report widget update. Human-readable NUL is disclosed as an escape so native QString conversion cannot truncate the later exact JSON; the source_text fact remains unchanged.

validate

validate(fonts: tuple[Font, ...], check: Callable) -> None

Validate detached identities/names/scalars with per-item checkpoints.