DrawTextPro method

void DrawTextPro(
  1. FontD font,
  2. String text,
  3. Vector2D position,
  4. Vector2D origin,
  5. num rotation,
  6. num fontSize,
  7. num spacing,
  8. ColorD tint,
)

Draw text using Font and pro parameters (rotation)

Implementation

void DrawTextPro(
  FontD font,
  String text,
  Vector2D position,
  Vector2D origin,
  num rotation,
  num fontSize,
  num spacing,
  ColorD tint,
) => run(
  () => _debugLabels.DrawTextPro(font, text, position, origin, rotation, fontSize, spacing, tint),
  () => _flat.DrawTextPro(
    font,
    $.String$.ValueOrNull(text),
    position,
    origin,
    rotation.toDouble(),
    fontSize.toDouble(),
    spacing.toDouble(),
    tint,
  ),
);