Function Font.renderTextSolid

Renders the text on an 8-bit palettized surface with the given color Background is transparent Text is less smooth than other render options This is the fastest rendering speed, and color can be changed without having to render again

Surface renderTextSolid (
  string text,
  Color color = Color(cast(ubyte)0u, cast(ubyte)0u, cast(ubyte)0u, cast(ubyte)255u, SDL_Color(cast(ubyte)0u, cast(ubyte)0u, cast(ubyte)0u, cast(ubyte)0u)),
  Encoding T = cast(Encoding)1
);