IFont

Interface for font loaders.

Members

Functions

load
void load(string file, int sizeInPt)

Loads the font from a file. Size may not do anything with bitmap fonts, use IText.scale instead!

measureText
vec2 measureText(string text, float scale = 1.0f)

Returns the dimensions of a string with this font.

measureTextMultiline
vec2 measureTextMultiline(string text, float scale = 1.0f)

Returns the dimensions of a multiline string with this font.

render
IText render(string text, float scale = 1.0f)

Renders a string to an IText.

renderMultiline
IText renderMultiline(string text, float scale = 1.0f)

Renders a multiline string to an IText.

Meta