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 classHwmfFont.WmfClipPrecisionClipPrecision Flags specify clipping precision, which defines how to clip characters that are partially outside a clipping region.static classHwmfFont.WmfFontQualityThe output quality defines how carefully to attempt to match the logical font attributes to those of an actual physical font.static classHwmfFont.WmfOutPrecisionThe 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 FontCharsetgetCharset()HwmfFont.WmfClipPrecisiongetClipPrecision()intgetEscapement()FontFamilygetFamily()intgetHeight()java.lang.IntegergetIndex()Get the index within the collection of Font objectsintgetOrientation()HwmfFont.WmfOutPrecisiongetOutPrecision()FontPitchgetPitch()intgetPitchAndFamily()HwmfFont.WmfFontQualitygetQuality()java.lang.StringgetTypeface()intgetWeight()intgetWidth()intinit(LittleEndianInputStream leis)booleanisItalic()booleanisStrikeOut()booleanisUnderline()voidsetCharset(FontCharset charset)Sets the charsetvoidsetFamily(FontFamily family)Sets the font family classvoidsetIndex(int index)Sets the index within the collection of Font objectsvoidsetPitch(FontPitch pitch)Set the font pitchvoidsetTypeface(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:FontInfoSets the font family class
-
getPitch
public FontPitch getPitch()
-
setPitch
public void setPitch(FontPitch pitch)
Description copied from interface:FontInfoSet the font pitch
-
getIndex
public java.lang.Integer getIndex()
Description copied from interface:FontInfoGet the index within the collection of Font objects
-
setIndex
public void setIndex(int index)
Description copied from interface:FontInfoSets the index within the collection of Font objects
-
getTypeface
public java.lang.String getTypeface()
- Specified by:
getTypefacein 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:FontInfoSets the font name- Specified by:
setTypefacein interfaceFontInfo- Parameters:
typeface- the full name of the font, whennullremoves the font definition - removal is implementation specific
-
getCharset
public FontCharset getCharset()
- Specified by:
getCharsetin interfaceFontInfo- Returns:
- the font charset
-
setCharset
public void setCharset(FontCharset charset)
Description copied from interface:FontInfoSets the charset- Specified by:
setCharsetin interfaceFontInfo- Parameters:
charset- the charset
-
-