Skip to content

fontlabapp.components.inspect.model

model

Original read-only component calculations with shared lazy native access.

The complete L1 inspectors consume these helpers. Ordered masters, missing bases, rounded display offsets and raw source snapshots deliberately remain distinct.

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
COLUMNS attribute
component_lists function (package: Any, names: Any, masters: Any) -> Any [(glyph, {master: [base names in order]})] for glyphs with components on any master.
component_rows function (layer: Any) -> Any [(base, dx, dy)] for the layer's components, in order.
counts function (layer: Any) -> Any (components, own contours, auto) for one layer.
current_name function () -> str Read the current native glyph name without touching its FontGate cache.
current_package function () -> Any Retain the original current-font helper without eager native imports.
frame function (dialog: Any, title: Any, width: Any) -> Any Window title, heading and muted subtitle; returns (root layout, subtitle).
glyph_path function (layer: Any) -> Any Reuse the native-verified placed closed/open paths for complete badge outlines.
has_layer function (package: Any, name: Any, master: Any) -> Any Preserve the original has layer calculation and native interface.
item_ink function () -> Any Item text brush: palette Text does not reach item views or spin boxes in FontLab (pale in screenshots, measured S-L3), so items get WindowText explicitly.
layer_of function (glyph: Any, master: Any) -> Any Preserve the original layer of calculation and native interface.
missing function (package: Any, names: Any, masters: Any, exists: Any=None) -> Any {missing base: [(glyph, master, reason)]}; exists(name, master) defaults to the font itself.
odd_masters function (lists: Any, masters: Any) -> Any Masters whose component list differs from the first master's.
pen function (color: Any, width: Any=1.0) -> Any Preserve the original pen calculation and native interface.
report function (package: Any, names: Any, masters: Any) -> Any [(glyph, master, components text, offsets text, kind)] for every layer with components.
selected_glyphs function (package: Any) -> list[Any] Resolve actual selection, otherwise the non-None current native glyph.
source_values function (package: Any, names: list[str], masters: list[str], *, geometry: bool=False) -> tuple Capture native source as plain values, including raw offsets before rounding.
to_csv function (rows: Any) -> Any Preserve the original to csv calculation and native interface.
usage_index function (package: Any, names: Any, masters: Any) -> Any {base: {composite: [(master, auto)]}} for the whole font, built in one pass.