- draw
void draw(DrawBuf buf, int x, int y, FontRef fnt, uint color)
- draw
void draw(DrawBuf buf, int x, int y, FontRef fnt, uint color, ubyte alignment)
draw horizontaly aligned formatted text
- format
Point format(dchar[] text, FontRef fnt, int maxLines, int maxWidth, int tabSize, int tabOffset, uint textFlags)
split text into lines and measure it; returns size in pixels
helper to split text into several lines and draw it