fontlabapp.proof.inspect.model
model
Read-only outline, advance-only text and word-filter helpers for Proof tools.
Native modules load only inside the access functions; importing this module is host-free.
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 |
|---|---|---|---|
CASES |
attribute | ||
ENGLISH |
attribute | ||
LATIN |
attribute | ||
WORDS |
attribute | ||
cased |
function | (word: str, case: str) -> str |
Apply the original proof case choice to one word. |
character_map |
function | () -> dict[int, str] |
Read the current font's first-name-wins Unicode map. |
find_words |
function | (words: list[str], available: set[str], case: str='lowercase', must: str='', only: str='', min_len: int=3, ma… |
Words (in the chosen case) that the font can set and that satisfy the letter filters. |
font_chars |
function | () -> set[str] |
Read exactly the characters encoded by the current font. |
font_maps |
function | () -> tuple[dict[int, str], set[str]] |
Read first-encoded-name wins and all unencoded names in font order. |
glyph_run |
function | (package: Any, glyph_names: list[str | None], master: str) -> list[tuple[Any, float]] |
[(path or None, advance)] in font units for one master; None marks a missing glyph. |
grid_scale |
function | (cells: list, frame: tuple[float, float], cell: float) -> float |
Use one scale for every master and fit even wide composites/overhangs. |
layer_path |
function | (layer: Any) -> Any |
The layer's outline as one QPainterPath in font units (y up), components placed. |
metrics |
function | (package: Any) -> tuple[float, float] |
(descender, ascender) of the font; widened to the drawn outlines so accents fit. |
parse_sizes |
function | (text: str) -> list[float] |
Keep ordered pixel sizes between 4 and 400, ignoring invalid tokens. |
parse_text |
function | (text: str, cmap: dict[int, str], names: set[str]) -> list[str | None] |
[glyph name or None] for the text; '/name ' or '/name/' addresses glyphs by name. |
path_span |
function | (path: Any, advance: float) -> tuple[float, float] |
Include full overhangs and the advance box in horizontal fitting. |
selected_glyphs |
function | (package: Any) -> list[Any] |
Read selection in font order with current-glyph fallback; never change it. |