drawTextPro function

void drawTextPro(
  1. Font font,
  2. String text,
  3. Vector2 position,
  4. Vector2 origin,
  5. double rotation,
  6. double fontSize,
  7. double spacing,
  8. Color tint,
)

Draw text using Font and pro parameters (rotation).

Implementation

void drawTextPro(
  Font font,
  String text,
  Vector2 position,
  Vector2 origin,
  double rotation,
  double fontSize,
  double spacing,
  Color tint,
) {
  return library.DrawTextPro(
    font.ref,
    string.toNative(text),
    position.ref,
    origin.ref,
    rotation,
    fontSize,
    spacing,
    tint.ref,
  );
}