Font.getGlyphDrawRect

Function/Meaning
Actual drawing range of a string
Type
Method of the Font class
Syntax
getGlyphDrawRect(text)
Arguments
text Specifies the string for which you want to obtain the range.
Return Value
Actual drawing range of the string
Description
Obtains the range where the glyph image will be drawn when the specified characters are rendered with the current font settings.
The obtained range is a Rect class object based on the 0,0 coordinates.
Only horizontal orientation is supported.
Reference
Rect