Skip to content

vyaz-monorepo / core/src / getGlyphAdvance

Function: getGlyphAdvance()

getGlyphAdvance(font, codePoint): number | null

Defined in: core/src/measure/FontEngine.ts:174

Get the advance width (in font units) for a single code point.

Parameters

font

FontFace

codePoint

number

Returns

number | null

advance width in font units, or null if the glyph is missing

Released under the MIT License.