Functions & Hooks

glyphIds

function glyphIds(text: string, style?: TextStyle): number[];

The glyph id per codepoint of text in the face style selects, for placing them yourself with <Glyphs>. 0 where the face has no glyph: this is the one path with no fallback, because a caller doing its own layout is the one that decides what to do about a hole.

Parameters

text

string

style?

TextStyle = {}

Returns

number[]

On this page