FontMetrics.charWidth

FontMetrics.charWidth

Class Overview | Class Members | This Package | All Packages

Syntax 1
public int charWidth( int ch )
Parameters
ch
the character to be measured
Returns
the advance width of the specified char in the font described by this font metric.
Description
Returns the advance width of the specified character in this Font. The advance width is the amount by which the current point is moved from one character to the next in a line of text.

See Also
charsWidth, stringWidth



Syntax 2
public int charWidth( char ch )
Parameters
ch
the character to be measured
Returns
the advance width of the specified char > in the font described by this font metric.
Description
Returns the advance width of the specified character in this Font. The advance width is the amount by which the current point is moved from one character to the next in a line of text.

See Also
charsWidth, stringWidth