imageTextEx function

Image imageTextEx(
  1. Font font,
  2. String text,
  3. double fontSize,
  4. double spacing,
  5. Color tint,
)

Create an image from text (custom sprite font).

Implementation

Image imageTextEx(
  Font font,
  String text,
  double fontSize,
  double spacing,
  Color tint,
) {
  return Image.fromRef(
    library.ImageTextEx(
      font.ref,
      string.toNative(text),
      fontSize,
      spacing,
      tint.ref,
    ),
  );
}