|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.poi.hwmf.record.HwmfFont
public class HwmfFont
The Font object specifies the attributes of a logical font
Nested Class Summary | |
---|---|
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 Summary | |
---|---|
HwmfFont()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HwmfFont()
Method Detail |
---|
public int init(LittleEndianInputStream leis) throws java.io.IOException
java.io.IOException
public 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()
getFamily
in interface FontInfo
public void setFamily(FontFamily family)
FontInfo
setFamily
in interface FontInfo
family
- the font family classpublic FontPitch getPitch()
getPitch
in interface FontInfo
null
if unsupportedpublic void setPitch(FontPitch pitch)
FontInfo
setPitch
in interface FontInfo
pitch
- the font pitchpublic java.lang.Integer getIndex()
FontInfo
getIndex
in interface FontInfo
public void setIndex(int index)
FontInfo
setIndex
in interface FontInfo
index
- the index within the collection of Font objectspublic java.lang.String getTypeface()
getTypeface
in interface FontInfo
public void setTypeface(java.lang.String typeface)
FontInfo
setTypeface
in interface FontInfo
typeface
- the full name of the font, when null
removes the font definition -
removal is implementation specificpublic FontCharset getCharset()
getCharset
in interface FontInfo
public void setCharset(FontCharset charset)
FontInfo
setCharset
in interface FontInfo
charset
- the charset
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |