Font

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

Disabled Default Constructor

A disabled default is present on this object. To use it, use one of the other constructors or a factory function.

Constructors

this
this(in string filename, in int size, in FontStyle style)

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

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Postblit

Copying this object is disabled.

A postblit is present on this object, but not explicitly documented in the source.

Members

Functions

getSizeOfString
Rectangle getSizeOfString(in string str, float lineHeight = 1)

Find how much space a string would take when rendered

render
Texture render(in char c)

Get the glyph for a given character

Meta