Skip to content

fontlabapp.studios.vertical_metrics.diagram.Frame

Frame dataclass

Map font units to widget pixels. y grows down in the widget.

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
baseline attribute float
column attribute float
left attribute float (shared captured text)
scale attribute float (shared captured text)
x function (self, index: int, units: float) -> float Pixel x of a unit offset inside column <code>index</code>.
y function (self, units: float) -> float Pixel y of a height in units.