Function Font.textSize
Measure text string as single line, returns width and height
Prototype
Point textSize(
const(dchar[]) text,
int maxWidth = 2147483647,
int tabSize = 4,
int tabOffset = 0,
uint textFlags = 0u
);
Parameters
| Name | Description |
|---|---|
| text | text string to measure |
| maxWidth | maximum width - measure is stopping if max width is reached |
| tabSize | tabulation size, in number of spaces |
| tabOffset | when string is drawn not from left position, use to move tab stops left/right |
| textFlags | TextFlag bit set - to control underline, hotkey label processing, etc... |
Authors
Vadim Lopatin, coolreader.org@gmail.com
Copyright
Vadim Lopatin, 2014
License
Boost License 1.0