TTFText

Implementation containing text drawable functions using a TTF font. Nice for static texts, slow for dynamic texts.

Constructors

this
this(TTFFont font)

Creates an empty ttf text

Members

Functions

dispose
void dispose()
Undocumented in source. Be warned that the author may not have intended to support it.
draw
void draw(IRenderTarget target, ShaderProgram shader)
Undocumented in source. Be warned that the author may not have intended to support it.
redraw
void redraw()

Should get called automatically when something changed.

Properties

multiline
bool multiline [@property getter]

Returns if this text should be rendered multiline.

multiline
bool multiline [@property setter]

Sets if this text should be rendered multiline.

scale
float scale [@property getter]

Gets the scale in percent.

scale
float scale [@property setter]

Sets the scale in percent.

text
string text [@property getter]

Gets the text.

text
string text [@property setter]

Modifies the text.

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

Meta