MeasureTextCodepoints method

Vector2 MeasureTextCodepoints(
  1. Font font,
  2. Int32List codepoints,
  3. num fontSize,
  4. num spacing,
)

Measure string size for an existing array of codepoints for Font

Implementation

Vector2 MeasureTextCodepoints(
  Font font,
  Int32List codepoints,
  num fontSize,
  num spacing,
) => run(
  () => _debugLabels.MeasureTextCodepoints(font, codepoints, fontSize, spacing),
  () => _flat.MeasureTextCodepoints(
    font,
    Int$.Array(codepoints),
    codepoints.length,
    fontSize.toDouble(),
    spacing.toDouble(),
  ),
);