Font.getTextHeight
Function/Meaning
Get text height
Type
Font class
method
Syntax
getTextHeight(
text
)
Arguments
text
Specifies the string for which you want to get the height.
Return Value
Returns the height of the specified string in pixels
Description
This method allows you to get the height required when drawing the specified string with this font.
Reference
Font.getTextWidth