getGlyphIndex function

int getGlyphIndex(
  1. Font font,
  2. int codepoint
)

Get glyph index position in font for a codepoint (unicode character), fallback to '?' if not found.

Implementation

int getGlyphIndex(Font font, int codepoint) {
  return library.GetGlyphIndex(font.ref, codepoint);
}