@pdfa-lab/fontkit / GlyphAxisMetrics
Interface: GlyphAxisMetrics ​
Defined in: src/glyph/glyph.ts:17
Represents the layout metrics for a glyph along a single layout axis (either purely horizontal or purely vertical).
This is a low-level structural representation used directly when parsing 1D dimension arrays from hmtx (Horizontal Metrics) or vmtx (Vertical Metrics) tables.
Properties ​
advance ​
advance:
number
Defined in: src/glyph/glyph.ts:23
The total distance the pen position must move after rendering this glyph. Maps to advanceWidth in horizontal layout, or advanceHeight in vertical layout. Measured in font design units.
bearing ​
bearing:
number
Defined in: src/glyph/glyph.ts:30
The offset distance from the axis baseline origin to the edge of the glyph bounding box. Maps to Left Side Bearing (lsb) in horizontal layout, or Top Side Bearing (tsb) in vertical layout. Measured in font design units.