d2d.font.ttftext



class TTFText: d2d.rendering.rectangleshape.RectangleShape, d2d.font.itext.IText;
Implementation containing text drawable functions using a TTF font. Nice for static texts, slow for dynamic texts.

this(TTFFont font);
Creates an empty ttf text

@property float scale();
Gets the scale in percent.

@property void scale(float value);
Sets the scale in percent.

@property string text();
Gets the text.

@property void text(string value);
Modifies the text.

@property bool multiline();
Returns if this text should be rendered multiline.

@property void multiline(bool value);
Sets if this text should be rendered multiline.

void redraw();
Should get called automatically when something changed.


Page generated by Ddoc.