public interface FontMetricsHelper
Modifier and Type | Method and Description |
---|---|
int |
charWidth(char ch)
Report the advance width of the given character.
|
int |
getHeight()
Report the height of a line of text.
|
int[] |
getWidths()
Report the advance widths of the first 256 characters in the font.
|
int |
stringWidth(java.lang.String text)
Report the advance width of the given text.
|
int[] |
stringWidths(java.lang.String text)
Get the intermediate widths of this text (for each substring starting from index 0, ending
on indices 1 ..
|
int charWidth(char ch)
ch
- The character to size.int[] getWidths()
int stringWidth(java.lang.String text)
text
- The string to size.int getHeight()
int[] stringWidths(java.lang.String text)
text
- The text.