getGlyphAtlasRec function

Rectangle getGlyphAtlasRec(
  1. Font font,
  2. int codepoint
)

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

Implementation

Rectangle getGlyphAtlasRec(Font font, int codepoint) {
  return Rectangle.fromRef(library.GetGlyphAtlasRec(font.ref, codepoint));
}