Font.getTextWidth
機能/意味
Get the width of a string
タイプ
Fontクラス
のメソッド
構文
getTextWidth(
text
)
引数
text
Specify the character string to get the width.
戻り値
Returns the width of the specified string in pixels
説明
In this method, you can get the required width when drawing the specified string with the current font settings.
参照
Font.getTextHeight