getGlyphInfo function

GlyphInfo getGlyphInfo(
  1. Font font,
  2. int codepoint
)

Get glyph font info data for a codepoint (unicode character), fallback to '?' if not found.

Implementation

GlyphInfo getGlyphInfo(Font font, int codepoint) {
  return GlyphInfo.fromRef(library.GetGlyphInfo(font.ref, codepoint));
}