Skip to main content

Interface: FontAtlasMetrics

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

Font metrics shared by every glyph in a FontAtlas, in em units.

Properties​

ascender​

ascender: number

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

The distance from the baseline to the top of the font's tallest glyphs.


capHeight​

capHeight: number

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

The distance from the baseline to the top of the font's capital letters (e.g. "H"), excluding ascenders like "b"/"d"/"h" that reach higher than a capital's flat top. Used by TextEcsComponent.verticalAlign: 'capline' to anchor a title/label to its capital letters specifically, ignoring both true ascenders and any descenders.


descender​

descender: number

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

The distance from the baseline to the bottom of the font's lowest-descending glyphs (negative).


lineHeight​

lineHeight: number

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

The default distance between successive lines' baselines.