Font

A structure that stores rendered font glyps for drawing on the screen

Constructors

this
this()
Undocumented in source.
this
this(string filename, int size, FontStyle style)

Load a font from a TTF file with a given size and style

Destructor

~this
~this()
Undocumented in source.

Postblit

this(this)
this(this)
Undocumented in source.

Members

Functions

getSizeOfString
Rectangle getSizeOfString(string str, float lineHeight)

Find how much space a string would take when rendered

render
Texture render(char c)

Get the glyph for a given character

Properties

characterHeight
int characterHeight [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

FONT_CHAR_OFFSET
auto FONT_CHAR_OFFSET;
Undocumented in source.
FONT_MAX_CHARS
auto FONT_MAX_CHARS;
Undocumented in source.

Meta