dsfml.graphics.font



class Font;
Font is the low-level class for loading and manipulating character fonts.

static Font getDefaultFont();
Get SFML default built-in font (Arial)

this();
Constructor

bool loadFromFile(char[] filename, uint charSize = cast(uint)30, wchar[] charset = ""w);
Load the Font from a file

Params:
char[] filename font file to load
uint charSize size of characters (30 by default)
wchar[] charset characters set to generate (empty by default - takes the ASCII range [31, 255])

Returns:
true if loading was successful

bool loadFromMemory(byte[] data, uint charSize = cast(uint)30, wchar[] charset = ""w);
Load the Font from a file

Params:
byte[] data pointer to data to load
sizeInBytes size of the data to load
uint charSize size of characters (30 by default)
wchar[] charset characters set to generate (empty by default - takes the ASCII range [31, 255])

Returns:
true if loading was successful


Page generated by Ddoc.