Skip to content

fontlabapp.fontui.tmetrics_model.Cell

Cell dataclass

One shaped glyph in visual order, placed in its row (font units).

width is the glyph's own advance width (the placed advance when the glyph is missing); kern is the extra space after it that kerning or positioning added; lsb/rsb are None for empty or missing glyphs. mark is True for a mark (GDEF class mark when the shaping font has glyph classes, else a glyph whose own nominal width is 0); a mark's kern is always 0, so it never gets a kern bar.

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
cluster attribute int (shared captured text)
index attribute int (shared captured text)
kern attribute float
lsb attribute float | None
mark attribute bool
name attribute str (shared captured text)
present attribute bool
row attribute int
rsb attribute float | None
width attribute float (shared captured text)
x attribute float (shared captured text)
x_offset attribute float (shared captured text)
y_offset attribute float (shared captured text)