DrawTextEx method

void DrawTextEx(
  1. FontD font,
  2. String text,
  3. Vector2D position,
  4. num fontSize,
  5. num spacing,
  6. ColorD tint,
)

Draw text using font and additional parameters

Implementation

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