fontlabapp.metrics.zones.model
model
Stage the complete Alignment Zones table workflow without importing a host.
Adapted from retained Apache-2.0 metrics_zones_editor.py. Python rounding, outward absolute widths, duplicate labels, source kind parsing and o/O overshoot rules are retained. Invalid rows reject the whole proposal instead of silently dropping data. All updates return independent immutable plans. Native capture/write and owned UI qualification remain separate from this numerical/staging layer.
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 |
|---|---|---|---|
Extent |
attribute | ||
Row |
attribute | ||
extent |
function | (y: float, height: float) -> Extent |
Return a positive-height vertical extent; flat/missing layers suggest none. |
suggest |
function | (x_height: float, caps_height: float, lower: Extent, upper: Extent) -> Zones |
Replace one master's zones with the source o/O baseline/x-height/cap rules. |