Font.getGlyphDrawRect

Function/Meaning

Actual drawing range of the character string

Type
Fontclassmethod of
Syntax
getGlyphDrawRect(text)
Arguments
text

Specify the character string for which you want to get the range.

Return value

Actual drawing range of the character string

Explanation

You can get the range where the glyph image is drawn when you draw the characters specified by the current font settings.
The resulting range is an object of the Rect class relative to the 0,0 coordinates.
Only landscape orientation is supported.

Reference
Rect