Skip to content

fontlabapp.studios.proof_studio.generators._text

_text

Shared text-to-glyph helpers for Word finder, Waterfall and By master.

What: glyph_names parses proof text with the absorbed panels' grammar (fontlabapp.proof.inspect.model.parse_text: characters by first encoded glyph, /name for any glyph, one following space is syntax); a missing character or name is None. names_run is the TMetrics form of the same text: /name tokens of the glyphs that exist, so TMetrics draws exactly the glyphs the panels drew. Pure; no Qt, no host.

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
glyph_names function (text: str, facts: Facts) -> list[str | None] The glyph name (or None when missing) for each character or <code>/name</code><code> token of </code><code>text</code>.
names_run function (names: list[str | None]) -> str <code>/a /b …</code> for the glyphs that exist, in order (missing ones are left out).