font

fnvoid font(int face, int size) nothrow @nogc

Sets the current font and size for text drawing.

Parameters

faceFont face (use Font enum or integer)
sizeFont size in pixels Example:
font(Font.helveticaBold, 14);
drawText("Hello!", 10, 50);
fnvoid font(Font face, int size) nothrow @nogc

ditto