Function Font.drawText
Draw text string to buffer.
void drawText(
DrawBuf buf,
int x,
int y,
const(dchar[]) text,
uint color,
int tabSize = 4,
int tabOffset = 0,
uint textFlags = 0u
);
Parameters
| Name | Description |
|---|---|
| buf | graphics buffer to draw text to |
| x | x coordinate to draw first character at |
| y | y coordinate to draw first character at |
| text | text string to draw |
| color | color for drawing of glyphs |
| tabSize | tabulation size, in number of spaces |
| tabOffset | when string is drawn not from left position, use to move tab stops left/right |
| textFlags | set of TextFlag bit fields |