| Modifier and Type | Class and Description |
|---|---|
static class |
HwmfFont.WmfClipPrecision
ClipPrecision Flags specify clipping precision, which defines how to clip characters that are
partially outside a clipping region.
|
static class |
HwmfFont.WmfFontQuality
The output quality defines how carefully to attempt to match the logical font attributes to those of an actual
physical font.
|
static class |
HwmfFont.WmfOutPrecision
The output precision defines how closely the output must match the requested font's height,
width, character orientation, escapement, pitch, and font type.
|
| Constructor and Description |
|---|
HwmfFont() |
| Modifier and Type | Method and Description |
|---|---|
FontCharset |
getCharset() |
HwmfFont.WmfClipPrecision |
getClipPrecision() |
int |
getEscapement() |
FontFamily |
getFamily() |
int |
getHeight() |
java.lang.Integer |
getIndex()
Get the index within the collection of Font objects
|
int |
getOrientation() |
HwmfFont.WmfOutPrecision |
getOutPrecision() |
FontPitch |
getPitch() |
int |
getPitchAndFamily() |
HwmfFont.WmfFontQuality |
getQuality() |
java.lang.String |
getTypeface() |
int |
getWeight() |
int |
getWidth() |
int |
init(LittleEndianInputStream leis) |
boolean |
isItalic() |
boolean |
isStrikeOut() |
boolean |
isUnderline() |
void |
setCharset(FontCharset charset)
Sets the charset
|
void |
setFamily(FontFamily family)
Sets the font family class
|
void |
setIndex(int index)
Sets the index within the collection of Font objects
|
void |
setPitch(FontPitch pitch)
Set the font pitch
|
void |
setTypeface(java.lang.String typeface)
Sets the font name
|
public int init(LittleEndianInputStream leis) throws java.io.IOException
java.io.IOExceptionpublic int getHeight()
public int getWidth()
public int getEscapement()
public int getOrientation()
public int getWeight()
public boolean isItalic()
public boolean isUnderline()
public boolean isStrikeOut()
public HwmfFont.WmfOutPrecision getOutPrecision()
public HwmfFont.WmfClipPrecision getClipPrecision()
public HwmfFont.WmfFontQuality getQuality()
public int getPitchAndFamily()
public FontFamily getFamily()
public void setFamily(FontFamily family)
FontInfopublic FontPitch getPitch()
public void setPitch(FontPitch pitch)
FontInfopublic java.lang.Integer getIndex()
FontInfopublic void setIndex(int index)
FontInfopublic java.lang.String getTypeface()
getTypeface in interface FontInfopublic void setTypeface(java.lang.String typeface)
FontInfosetTypeface in interface FontInfotypeface - the full name of the font, when null removes the font definition -
removal is implementation specificpublic FontCharset getCharset()
getCharset in interface FontInfopublic void setCharset(FontCharset charset)
FontInfosetCharset in interface FontInfocharset - the charsetCopyright 2018 The Apache Software Foundation or its licensors, as applicable.