Returns the advance width of the characters in
ch
, starting at the specified offset and for the specified number of characters (length). The advance width is the horizontal distance that would be occupied if the characters were to be drawn using this
Font
, including inter-character spacing following the characters necessary for proper positioning of subsequent text.
The offset
and length
parameters must specify a valid range of characters within the character array ch
. The offset
parameter must be within the range [0..(ch.length)]
, inclusive. The length
parameter must be a non-negative integer such that (offset + length) <= ch.length
.
@param ch the array of characters
@param offset the index of the first character to measure
@param length the number of characters to measure
@return the width of the character range
@throws ArrayIndexOutOfBoundsException if
offset
and
length
specify an invalid range
@throws NullPointerException if
ch
is
null