imageDrawTextEx function

void imageDrawTextEx(
  1. Image dst,
  2. Font font,
  3. String text,
  4. Vector2 position,
  5. double fontSize,
  6. double spacing,
  7. Color tint,
)

Draw text (custom sprite font) within an image (destination).

Implementation

void imageDrawTextEx(
  Image dst,
  Font font,
  String text,
  Vector2 position,
  double fontSize,
  double spacing,
  Color tint,
) {
  return library.ImageDrawTextEx(
    dst.pointer,
    font.ref,
    string.toNative(text),
    position.ref,
    fontSize,
    spacing,
    tint.ref,
  );
}