Function Font.drawColoredText
Prototype
void drawColoredText(
DrawBuf buf,
int x,
int y,
const(dchar[]) text,
const(CustomCharProps[]) charProps,
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 |
charProps | array of character properties, charProps [i] are properties for character text [i] |
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 |
Authors
Vadim Lopatin, coolreader.org@gmail.com
Copyright
Vadim Lopatin, 2014
License
Boost License 1.0