GetGlyphAtlasRec method

  1. @override
RectangleD GetGlyphAtlasRec(
  1. FontD font,
  2. int codepoint
)
override

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

Implementation

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