Font.getEscWidthX

Function/Meaning
X-coordinate displacement in the horizontal direction of the character
Type
Method of the Font class
Syntax
getEscWidthX(text)
Arguments
text Specifies the string for which you want to obtain the X-coordinate displacement in the horizontal direction.
Return Value
Returns the X-coordinate displacement in the horizontal direction of the character in pixels
Description
You can obtain the displacement of the character drawing position required when drawing the specified character with the current font settings.
This method allows you to obtain the displacement on the X-coordinate when moving horizontally (to the side) relative to the character drawing direction.
See Also
Font.getEscWidthY
Font.getEscHeightX
Font.getEscHeightY