Skip to content

fontlabapp.studios._records

_records

Shared metadata-safe glyph catalogue read for the studios (Scriptmix TODO:48).

What: glyph_records(package) returns exactly what the three private copies in the Font Info tools (Calculate Vertical Metrics, Glyph Order Preview and Export, Unicode Ranges and Codepages) return: [(name, [code, ...])] in legacy FL.fl.font order, refused with the same message when the package is not the current one. catalogue(package) adds the per-glyph facts the Font Audit tabs read: per-master advance widths and contour counts, the current master's components, composite and mark/note/export flags. How: codes come from core.scripting.names_font_glyphs (CurrentFont glyphs), never from flGlyph.fgGlyph; the legacy names must list the same glyphs in the same order, otherwise the read is refused (no silent reorder). Layers are read with findLayer, components through shapeData; no FontGate attribute is probed. Read-only and Qt-free. Used by fontlabapp.studios.font_audit; A12/A29/A30 replace their copies with it.

Classes

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
ORDER attribute
SKIP_KEY attribute
STALE attribute
catalogue function (package: Any) -> Catalogue Read every glyph of <code>package</code> (the current package) once; see the module text.
component_names function (layer: Any) -> list[str] Base glyph names of the layer's components (the originals' helper).
glyph_records function (package: Any) -> list[tuple[str, list[int]]] <code>&#91;(name, &#91;code, ...&#93;)&#93;</code> in legacy font order; the Font Info copies' contract.
skipped function (package: Any) -> frozenset[str] Names in <code>public.skipExportGlyphs</code> (absent: none), as Smallcap Consistency reads it.