Font.getTextHeight

Function/Meaning

Get the height of the string

Type
Fontclassmethod of
Syntax
getTextHeight(text)
Arguments
text

Specify the character string for which you want to obtain the vertical width.

Return value

Returns the vertical width of the specified string in pixels

Explanation

With this method, you can get the required height when drawing the specified string with this font.

Reference
Font.getTextWidth