fontlabapp.studios.derived_glyphs.default_figures
default_figures
Default figures tab: Scripts/Components/Set Default Figures.py in host mode.
Choose one figure family (Lining .lf, Oldstyle .osf, Tabular lining .tf,
Tabular oldstyle .tosf; remembered in the original's QSettings
"FontLab"/"ScriptDefaultFigures" key optionFigures). Apply makes the ten
default digit cells (zero-nine) show that family as plain components on
every master: missing cells are created with their U+0030-U+0039 code
points, advances and kerning memberships follow the source, anchors stay.
"Replace own contours" (off by default) also removes the cells' contours;
off, they stay (Scriptmix TODO:16). The rebuild consent works as in the
original. The writer is the shared component-set writer
(_component_sets); the functions below are the original's, verbatim.
Window placement is no longer saved (the shell owns the window).
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 |
|---|---|---|---|
CHOICES |
attribute | ||
DIGITS |
attribute | ||
TITLE |
attribute | (shared captured text) | |
apply_pairs |
function | (package: Any, pairs: list[Pair], *, replace_contours: bool=False, allow_rebuild: bool=False, kept: list[str]… |
Use the single component-set writer with figure-specific preservation rules. |
glyph_copies |
attribute | (shared captured text) | |
glyph_creation |
attribute | (shared captured text) | |
load_family |
function | (settings: Any) -> int |
Restore the tool's family; absent or malformed values select lining. |
mappings |
function | (package: Any, option: int=0) -> list[Pair] |
Require every source in the requested family; allow missing default cells. |
save_family |
function | (settings: Any, option: int) -> None |
Save only the chosen family; report unconfirmed writes without editing fonts. |
settings |
function | () -> Any |
The original's figure-family preferences (tests replace this). |