Skip to main content

Interface: GlyphMetrics

Defined in: text/font-atlas/font-atlas-data.ts:23

The per-glyph metrics and geometry needed to shape and render one character from a FontAtlas.

Properties​

advance​

advance: number

Defined in: text/font-atlas/font-atlas-data.ts:28

Horizontal advance to the next glyph's origin, in em units.


atlasBounds​

atlasBounds: Bounds | null

Defined in: text/font-atlas/font-atlas-data.ts:41

This glyph's texture rect in the atlas, normalized 0 to 1 with top closer to the top of the atlas image than bottom. null for glyphs with no visible ink (e.g. space).


codePoint​

codePoint: number

Defined in: text/font-atlas/font-atlas-data.ts:25

The Unicode code point this glyph represents.


planeBounds​

planeBounds: Bounds | null

Defined in: text/font-atlas/font-atlas-data.ts:34

This glyph's quad, in em units relative to the text baseline origin, Y-up. null for glyphs with no visible ink (e.g. space).