FontMetrics.stringWidth

FontMetrics.stringWidth

Class Overview | Class Members | This Package | All Packages

Syntax
public int stringWidth( String str )
Parameters
str
the String to be measured
Returns
the advance width of the specified string in the font described by this font metric.
Description
Returns the total advance width for showing the specified String 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
bytesWidth, charsWidth