fontlabapp.studios.vertical_metrics.calculate
calculate
Calculate tab: Calculate Vertical Metrics (Font Info) and Vertical Metrics Reporter (Reports).
Calculate: Refresh measures the bounds of every nonempty glyph in every
master (scan_bounds, the original 2.5 s interactive deadline) and the
dry run lists, per master in scope, the font-info fields that would enclose
every glyph, rounded outward (enclosing_metrics): padding 0–2000 and line
gap 0–32767 (both default 0); the hhea and Win groups are ticked, the OS/2
Typo group (= FontLab's own ascender, descender and line gap) is optional
and off, as in the original. "Set metrics" writes exactly the listed plan
through the original writer core.scripting.write_font_info (it refuses a
value that changed since the preview) as one
Vertical Metrics: calculate metrics of <masters> Undo step. Bounds are
captured on Refresh; press Refresh after outline edits.
The glyph list keeps the original glyph_records read (legacy
FL.fl.font order and fgGlyph.unicodes); moving it to the shared
studios._records catalogue waits for the native check (Scriptmix
TODO:48, T10 ruling, T29) and is disclosed in the task report.
Reporter: "Compare open fonts" reads eight stored metrics of every master in
every open font (metrics.vertical.native.capture) and shows the original
text report (metrics.vertical.model.render). It only reads.
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 |
|---|---|---|---|
GROUPS |
attribute | ||
LABELS |
attribute | ||
METRIC_FIELDS |
attribute | ||
REPORTER_NOTE |
attribute | ||
STATUS |
attribute | ||
enclosing_metrics |
function | (low: float, high: float, padding: int, gap: int) -> list[float] |
Round bounds outward and validate OpenType metric limits. |
glyph_records |
function | (package: Any) -> Any |
Read all Unicode assignments, including secondary encodings, in font order. (shared captured text) |
metric_plan |
function | (package: Any, bounds: Any, masters: Any, padding: Any, gap: Any, fields: Any=METRIC_FIELDS) -> Any |
Build selected master and metric edits while restoring the active master. |
number |
function | (value: Any) -> Any |
965.0 -> 965 for display. |
scan_bounds |
function | (package: Any) -> dict[str, tuple[float, float, int]] |
Measure all nonempty glyph bounds with an interactive deadline. |