createFont

Creates font by loading it from the disk from specified file name. Returns handle to the font or FONS_INVALID (aka -1) on error. Use "fontname:noaa" as name to turn off antialiasing (if font driver supports that).

On POSIX systems it is possible to use fontconfig font names too. :noaa in font path is still allowed, but it must be the last option.

nothrow @trusted
int
createFont
(,
const(char)[] name
,
const(char)[] path
)

See Also

Meta