MeasureTextCodepoints method

  1. @override
Vector2D MeasureTextCodepoints(
  1. FontD font,
  2. MemoryPointer<RInt> codepoints,
  3. int length,
  4. double fontSize,
  5. double spacing,
)
override

Measure string size for an existing array of codepoints for Font

Implementation

@override
Vector2D MeasureTextCodepoints(
  FontD font,
  MemoryPointer<RInt> codepoints,
  int length,
  double fontSize,
  double spacing,
) => $.Vector2$.Extract1(
  (p) => _ffi.MeasureTextCodepoints(
    $.Font$.Ref1(font).asNativePointer<FontC>().ref,
    codepoints.asNativePointer(),
    length,
    fontSize,
    spacing,
  ).toDart(p.asNativePointer()),
);