Skip to content

fontlabapp.studios.vertical_metrics._shared

_shared

Pieces shared by the Vertical Metrics & Zones tabs: backends, labels, master tables, native names.

What: backends() is core.scripting.vertical_metrics_backends() (tests replace it); label(action, masters) is the one Undo label form "Vertical Metrics: <action> of <masters>"; MasterTable is a plain Qt table with one row per master (zones, metrics and angles are master data, not glyph layers, so GlyphTable rows do not fit); ap/ fontlab resolve the native modules on first attribute use, so the verbatim Scriptmix functions keep their ap.FL/ap.fontlab/fontlab reads while the package imports offline. Used by every tab module of fontlabapp.studios.vertical_metrics.

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
ap attribute
backends function () -> Any The reused App backends (<code>core.scripting.vertical&#95;metrics&#95;backends</code>).
fontlab attribute
keep function (panel: Any, slot: Callable[..., Any]) -> Callable[..., Any] Wrap an edit slot: a refusal goes to the status line and the tab keeps what it shows.
label function (action: str, masters: Iterable[str]) -> str <code>&quot;Vertical Metrics: set metrics of Regular, Bold&quot;</code>: the Undo step name of one Apply.
plural function (count: int, word: str) -> str (shared captured text)