Package org.apache.poi.hemf.record.emf
Class HemfFont
java.lang.Object
org.apache.poi.hwmf.record.HwmfFont
org.apache.poi.hemf.record.emf.HemfFont
- All Implemented Interfaces:
FontInfo,GenericRecord
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.poi.hwmf.record.HwmfFont
HwmfFont.WmfClipPrecision, HwmfFont.WmfFontQuality, HwmfFont.WmfOutPrecision -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintinit(LittleEndianInputStream leis, long recordSize) voidsetHeight(double height) voidsetItalic(boolean italic) voidsetStrikeOut(boolean strikeOut) voidsetTypeface(String typeface) Sets the font namevoidsetUnderline(boolean underline) voidsetWeight(int weight) toString()Methods inherited from class org.apache.poi.hwmf.record.HwmfFont
getCharset, getClipPrecision, getEscapement, getFamily, getHeight, getOrientation, getOutPrecision, getPitch, getPitchAndFamily, getQuality, getTypeface, getWeight, getWidth, initDefaults, isItalic, isStrikeOut, isUnderlineMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.poi.common.usermodel.fonts.FontInfo
getFacets, getIndex, getPanose, setCharset, setFamily, setIndex, setPanose, setPitchMethods inherited from interface org.apache.poi.common.usermodel.GenericRecord
getGenericChildren, getGenericRecordType
-
Constructor Details
-
HemfFont
public HemfFont()
-
-
Method Details
-
init
- Overrides:
initin classHwmfFont- Throws:
IOException
-
toString
-
getGenericProperties
- Specified by:
getGenericPropertiesin interfaceGenericRecord- Overrides:
getGenericPropertiesin classHwmfFont
-
setHeight
public void setHeight(double height) -
setWeight
public void setWeight(int weight) -
setItalic
public void setItalic(boolean italic) -
setUnderline
public void setUnderline(boolean underline) -
setStrikeOut
public void setStrikeOut(boolean strikeOut) -
setTypeface
Description copied from interface:FontInfoSets the font name- Parameters:
typeface- the full name of the font, whennullremoves the font definition - removal is implementation specific
-