Font.render

Draws the text on a Surface by using this Font and the given Mode (default is Mode.Solid) The text (and the Surface) is colorized by fg / bg Color.

Note: The background color is ignored if your mode is not Font.Mode.Shaded

Returns a Surface with the text or throws an Error

struct Font
@nogc
render
nothrow
(
string text
,
const Color4b fg
,
const Color4b bg
,
)

Meta