GetGlyphAtlasRec method

  1. @override
Rectangle GetGlyphAtlasRec(
  1. Font font,
  2. int codepoint
)
override

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

Implementation

@override
Rectangle GetGlyphAtlasRec(
  Font font,
  int codepoint,
) => Rectangle$.Extract1(
  (p) => _ffi.GetGlyphAtlasRec(
    Font$.Ref1(font).asNativePointer<FontC>().ref,
    codepoint,
  ).toDart(p.asNativePointer()),
);