|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The PrinterFont interface represents a font, which is used to render text to the page's printable area. A PrinterFont object will represent a logical font. The logical font will then be matched to an available printer font depending on the particular printer model. More fonts can be configured using the font configuration class.
FontConfigurationManager
,
PrinterConnection
Field Summary | |
static int |
FONTTYPE_BITMAPPED
Constant to indicate a BITMAPPED font type. |
static int |
FONTTYPE_SCALABLE
Constant to indicate a SCALABLE font type. |
static long |
OPTION_ANY
Constant to indicate any font option. |
static long |
OPTION_BOLD
Constant to indicate a bold font option. |
static long |
OPTION_ITALIC
Constant to indicate an italic font option. |
static long |
OPTION_NORMAL
Constant to indicate a normal font option. |
static long |
OPTION_UNDERLINE
Constant to indicate an underline font option. |
Method Summary | |
float |
getConfiguredSize()
Returns the configured point size for this font. |
java.lang.String |
getDescription()
Returns the description for this font. |
float |
getHeight()
Returns the font height in points. |
Metrics |
getMetrics(java.lang.String text)
Returns the metrics for a particular text. |
java.lang.String |
getName()
Returns the name of the printer font. |
long |
getOptions()
Returns the options mask. |
int |
getType()
Returns the type for this font. |
Field Detail |
public static final int FONTTYPE_BITMAPPED
public static final int FONTTYPE_SCALABLE
public static final long OPTION_NORMAL
public static final long OPTION_ANY
public static final long OPTION_BOLD
public static final long OPTION_ITALIC
public static final long OPTION_UNDERLINE
Method Detail |
public java.lang.String getName()
public java.lang.String getDescription()
public float getConfiguredSize()
public int getType()
public long getOptions()
public float getHeight() throws PrinterException
PrinterException
- thrown if unable to get font heightpublic Metrics getMetrics(java.lang.String text) throws PrinterException
text
- the text
PrinterException
- thrown if unable to obtain text metrics
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |