GetGlyphAtlasRec method

RectangleD GetGlyphAtlasRec(
  1. FontD font,
  2. num codepoint
)

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

Implementation

RectangleD GetGlyphAtlasRec(
  FontD font,
  num codepoint,
) => run(
  () => _debugLabels.GetGlyphAtlasRec(font, codepoint),
  () => _flat.GetGlyphAtlasRec(
    font,
    codepoint.toInt(),
  ),
);