Package org.apache.poi.hwmf.record
Class HwmfFont
java.lang.Object
org.apache.poi.hwmf.record.HwmfFont
- All Implemented Interfaces:
FontInfo,GenericRecord
- Direct Known Subclasses:
HemfFont
The Font object specifies the attributes of a logical font
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classClipPrecision Flags specify clipping precision, which defines how to clip characters that are partially outside a clipping region.static enumThe output quality defines how carefully to attempt to match the logical font attributes to those of an actual physical font.static enumThe 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 -
Method Summary
Methods 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, setPitch, setTypefaceMethods inherited from interface org.apache.poi.common.usermodel.GenericRecord
getGenericChildren, getGenericRecordType
-
Constructor Details
-
HwmfFont
public HwmfFont()
-
-
Method Details
-
init
- Throws:
IOException
-
initDefaults
public void initDefaults() -
getHeight
public double 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
-
getClipPrecision
-
getQuality
-
getPitchAndFamily
public int getPitchAndFamily() -
getFamily
-
getPitch
-
getTypeface
- Specified by:
getTypefacein interfaceFontInfo- Returns:
- the full name of the font, i.e. font family + type face
-
getCharset
- Specified by:
getCharsetin interfaceFontInfo- Returns:
- the font charset
-
toString
-
getGenericProperties
- Specified by:
getGenericPropertiesin interfaceGenericRecord
-