Skip to content

fontlabapp.fontui.tmetrics_model.Metrics

Metrics dataclass

Vertical font metrics in font units; None when the font does not say.

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
ascender attribute float | None
bottom attribute (self) -> float Row bottom (negative): the descender, or -20% of the em.
cap_height attribute float | None
descender attribute float | None
lines function (self) -> list[tuple[str, float]] Return the known guide lines as <code>(label, y)</code>, baseline first.
top attribute (self) -> float Row top above the baseline: the ascender, or 80% of the em.
upm attribute float
x_height attribute float | None