edu.princeton.swing.text
public class FontInfo extends java.lang.Object
Constructor and Description |
---|
FontInfo(java.awt.Font font,
boolean[] characterAllowed)
Creates a new FontInfo object.
|
Modifier and Type | Method and Description |
---|---|
int[] |
getBoldCharacterWidths()
Returns the set of all character widths for the bold flavor of the font.
|
int[] |
getBoldItalicCharacterWidths()
Returns the set of all character widths for the bold-italic flavor of the font.
|
int |
getCharacterHeight()
Gets the maximum character height for the font over the specified set of characters.
|
java.awt.Font |
getFont()
Returns the font represented by this FontInfo object.
|
int[] |
getItalicCharacterWidths()
Returns the set of all character widths for the italic flavor of the font.
|
int |
getLineSpacing()
Gets the recommended number pixels which should vertically separate each line.
|
int |
getMaxCharacterWidth()
Returns the maximum width attained by one of the characters in the specified set of
characters.
|
int[] |
getPlainCharacterWidths()
Returns the set of all character widths for the plain flavor of the font.
|
boolean |
isMonospaced()
Returns wheter or not the font is monspaced over the specified set of characters.
|
public FontInfo(java.awt.Font font, boolean[] characterAllowed)
public java.awt.Font getFont()
public boolean isMonospaced()
public int getMaxCharacterWidth()
public int[] getPlainCharacterWidths()
public int[] getBoldCharacterWidths()
public int[] getItalicCharacterWidths()
public int[] getBoldItalicCharacterWidths()
public int getCharacterHeight()
public int getLineSpacing()