measureTextEx function

Vector2 measureTextEx(
  1. Font font,
  2. String text,
  3. double fontSize,
  4. double spacing,
)

Measure string size for Font.

Implementation

Vector2 measureTextEx(
  Font font,
  String text,
  double fontSize,
  double spacing,
) {
  return Vector2.fromRef(
    library.MeasureTextEx(
      font.ref,
      string.toNative(text),
      fontSize,
      spacing,
    ),
  );
}