Function Font.renderTextShaded

Renders the text with a given color on an 8-bit palettized surface with a given background color Text is smooth but renders slowly Surface blits as fast as the Solid render method once it is made

Surface renderTextShaded (
  string text,
  Color foreground,
  Color background,
  Encoding T = cast(Encoding)1
);