Skip to content

fontlabapp.glyphs.case_coverage.model · declarations 001

Back to fontlabapp.glyphs.case_coverage.model

analyze

analyze(glyphs: Iterable[GlyphFact], preferred: Mapping[str, str], options: Options = Options(), *, deadline: float = float('inf'), clock: Callable = monotonic, cancelled: Callable = lambda: False) -> dict

Return all diagnostics and exact ordered/repeated proof occurrences.

Preferred canonical names win even when unencoded. Otherwise the first glyph in font order encoding the whole mapped character wins; ambiguity lists every candidate. Multi-character expansions require a canonical named glyph (including i_dotaccentcomb→i and SS→Germandbls), never a set of independent glyphs. Source and counterpart export asymmetry applies equally to named and encoded aliases. Nonexporting source glyphs are read. Math exclusion suppresses missing cases only, as in the source workflow. Unknowns are reported explicitly and cannot produce all-clear feedback.

character_texts

character_texts(glyph: GlyphFact, check: Callable) -> tuple[str, ...]

Read independent encodings in first-occurrence order under the caller budget.

checkpoint

checkpoint(deadline: float, clock: Callable, cancelled: Callable) -> None

Check cancellation and the shared deadline; never return a partial report.