Font.textSize

Measure text string as single line, returns width and height

class Font
Point
textSize
(
dstring text
,,
int tabSize = 4
,
int tabOffset = 0
,
uint textFlags = 0
)

Parameters

text dstring

text string to measure

maxWidth int

maximum width - measure is stopping if max width is reached

tabSize int

tabulation size, in number of spaces

tabOffset int

when string is drawn not from left position, use to move tab stops left/right

textFlags uint

TextFlag bit set - to control underline, hotkey label processing, etc...

Meta