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