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
public class HemfFont extends HwmfFont
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.poi.hwmf.record.HwmfFont
HwmfFont.WmfClipPrecision, HwmfFont.WmfFontQuality, HwmfFont.WmfOutPrecision
-
-
Constructor Summary
Constructors Constructor Description HemfFont()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.util.function.Supplier<?>>
getGenericProperties()
int
init(LittleEndianInputStream leis, long recordSize)
void
setHeight(double height)
void
setItalic(boolean italic)
void
setStrikeOut(boolean strikeOut)
void
setTypeface(java.lang.String typeface)
Sets the font namevoid
setUnderline(boolean underline)
void
setWeight(int weight)
java.lang.String
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, isUnderline
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.poi.common.usermodel.fonts.FontInfo
getFacets, getIndex, getPanose, setCharset, setFamily, setIndex, setPanose, setPitch
-
Methods inherited from interface org.apache.poi.common.usermodel.GenericRecord
getGenericChildren, getGenericRecordType
-
-
-
-
Method Detail
-
init
public int init(LittleEndianInputStream leis, long recordSize) throws java.io.IOException
-
getGenericProperties
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
- Specified by:
getGenericProperties
in interfaceGenericRecord
- Overrides:
getGenericProperties
in 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
public void setTypeface(java.lang.String typeface)
Description copied from interface:FontInfo
Sets the font name- Parameters:
typeface
- the full name of the font, whennull
removes the font definition - removal is implementation specific
-
-