fontlabapp.components.inspect.model · declarations 001
Back to fontlabapp.components.inspect.model
COLUMNS
module-attribute
COLUMNS
component_lists
component_lists(package: Any, names: Any, masters: Any) -> Any
[(glyph, {master: [base names in order]})] for glyphs with components on any master.
component_rows
component_rows(layer: Any) -> Any
[(base, dx, dy)] for the layer's components, in order.
counts
counts(layer: Any) -> Any
(components, own contours, auto) for one layer.
current_name
current_name() -> str
Read the current native glyph name without touching its FontGate cache.
current_package
current_package() -> Any
Retain the original current-font helper without eager native imports.
frame
frame(dialog: Any, title: Any, width: Any) -> Any
Window title, heading and muted subtitle; returns (root layout, subtitle).
glyph_path
glyph_path(layer: Any) -> Any
Reuse the native-verified placed closed/open paths for complete badge outlines.
has_layer
has_layer(package: Any, name: Any, master: Any) -> Any
Preserve the original has layer calculation and native interface.
item_ink
item_ink() -> 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
layer_of(glyph: Any, master: Any) -> Any
Preserve the original layer of calculation and native interface.
missing
missing(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
odd_masters(lists: Any, masters: Any) -> Any
Masters whose component list differs from the first master's.
pen
pen(color: Any, width: Any = 1.0) -> Any
Preserve the original pen calculation and native interface.
report
report(package: Any, names: Any, masters: Any) -> Any
[(glyph, master, components text, offsets text, kind)] for every layer with components.
selected_glyphs
selected_glyphs(package: Any) -> list[Any]
Resolve actual selection, otherwise the non-None current native glyph.
A valid FontGate CurrentGlyph can be falsey when it has no contours. The badge tool tests identity against None and filters unresolved names the same way; Compatibility retains selected_names without this current-glyph fallback.
source_values
source_values(package: Any, names: list[str], masters: list[str], *, geometry: bool = False) -> tuple
Capture native source as plain values, including raw offsets before rounding.
Only the card tool reads geometry, because the other tools display metadata. Base-layer presence participates so newly missing references invalidate actions.
to_csv
to_csv(rows: Any) -> Any
Preserve the original to csv calculation and native interface.
usage_index
usage_index(package: Any, names: Any, masters: Any) -> Any
{base: {composite: [(master, auto)]}} for the whole font, built in one pass.