@pdfa-lab/fontkit / GlyphLayoutMetrics
Interface: GlyphLayoutMetrics ​
Defined in: src/glyph/glyph.ts:40
Represents the comprehensive, multi-axis bounding metrics for a specific glyph.
This unified structure combines data resolved from both horizontal and vertical layout systems, making it the primary interface for high-level rendering engines, text-shaping loops, and bounding-box calculators.
Properties ​
advanceHeight ​
advanceHeight:
number
Defined in: src/glyph/glyph.ts:51
The vertical advance height of the glyph, indicating how much to shift the Y-cursor when rendering in vertical writing mode. Sourced from the vmtx table.
advanceWidth ​
advanceWidth:
number
Defined in: src/glyph/glyph.ts:45
The horizontal advance width of the glyph, indicating how much to shift the X-cursor after rendering. Sourced from the hmtx table.
leftBearing ​
leftBearing:
number
Defined in: src/glyph/glyph.ts:57
The distance from the horizontal origin (X = 0) to the leftmost edge of the glyph's outline. Also known as Left Side Bearing (LSB).
topBearing ​
topBearing:
number
Defined in: src/glyph/glyph.ts:63
The distance from the vertical origin (Y = 0) to the top edge of the glyph's outline. Also known as Top Side Bearing (TSB).