Package org.apache.poi.hwmf.record
Class HwmfFont
- java.lang.Object
-
- org.apache.poi.hwmf.record.HwmfFont
-
-
Nested Class Summary
Nested Classes Modifier and Type Class 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 Summary
Constructors Constructor Description HwmfFont()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FontCharset
getCharset()
HwmfFont.WmfClipPrecision
getClipPrecision()
int
getEscapement()
FontFamily
getFamily()
int
getHeight()
java.lang.Integer
getIndex()
Get the index within the collection of Font objectsint
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 charsetvoid
setFamily(FontFamily family)
Sets the font family classvoid
setIndex(int index)
Sets the index within the collection of Font objectsvoid
setPitch(FontPitch pitch)
Set the font pitchvoid
setTypeface(java.lang.String typeface)
Sets the font name
-
-
-
Method Detail
-
init
public int init(LittleEndianInputStream leis) throws java.io.IOException
- Throws:
java.io.IOException
-
getHeight
public int getHeight()
-
getWidth
public int getWidth()
-
getEscapement
public int getEscapement()
-
getOrientation
public int getOrientation()
-
getWeight
public int getWeight()
-
isItalic
public boolean isItalic()
-
isUnderline
public boolean isUnderline()
-
isStrikeOut
public boolean isStrikeOut()
-
getOutPrecision
public HwmfFont.WmfOutPrecision getOutPrecision()
-
getClipPrecision
public HwmfFont.WmfClipPrecision getClipPrecision()
-
getQuality
public HwmfFont.WmfFontQuality getQuality()
-
getPitchAndFamily
public int getPitchAndFamily()
-
getFamily
public FontFamily getFamily()
-
setFamily
public void setFamily(FontFamily family)
Description copied from interface:FontInfo
Sets the font family class
-
getPitch
public FontPitch getPitch()
-
setPitch
public void setPitch(FontPitch pitch)
Description copied from interface:FontInfo
Set the font pitch
-
getIndex
public java.lang.Integer getIndex()
Description copied from interface:FontInfo
Get the index within the collection of Font objects
-
setIndex
public void setIndex(int index)
Description copied from interface:FontInfo
Sets the index within the collection of Font objects
-
getTypeface
public java.lang.String getTypeface()
- Specified by:
getTypeface
in interfaceFontInfo
- Returns:
- the full name of the font, i.e. font family + type face
-
setTypeface
public void setTypeface(java.lang.String typeface)
Description copied from interface:FontInfo
Sets the font name- Specified by:
setTypeface
in interfaceFontInfo
- Parameters:
typeface
- the full name of the font, whennull
removes the font definition - removal is implementation specific
-
getCharset
public FontCharset getCharset()
- Specified by:
getCharset
in interfaceFontInfo
- Returns:
- the font charset
-
setCharset
public void setCharset(FontCharset charset)
Description copied from interface:FontInfo
Sets the charset- Specified by:
setCharset
in interfaceFontInfo
- Parameters:
charset
- the charset
-
-