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
public class HwmfFont extends java.lang.Object implements FontInfo, GenericRecord
The Font object specifies the attributes of a logical font
-
-
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()java.util.Map<java.lang.String,java.util.function.Supplier<?>>getGenericProperties()doublegetHeight()intgetOrientation()HwmfFont.WmfOutPrecisiongetOutPrecision()FontPitchgetPitch()intgetPitchAndFamily()HwmfFont.WmfFontQualitygetQuality()java.lang.StringgetTypeface()intgetWeight()intgetWidth()intinit(LittleEndianInputStream leis, long recordSize)voidinitDefaults()booleanisItalic()booleanisStrikeOut()booleanisUnderline()java.lang.StringtoString()-
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, setTypeface
-
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
- Throws:
java.io.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
public HwmfFont.WmfOutPrecision getOutPrecision()
-
getClipPrecision
public HwmfFont.WmfClipPrecision getClipPrecision()
-
getQuality
public HwmfFont.WmfFontQuality getQuality()
-
getPitchAndFamily
public int getPitchAndFamily()
-
getFamily
public FontFamily getFamily()
-
getPitch
public FontPitch getPitch()
-
getTypeface
public java.lang.String getTypeface()
- Specified by:
getTypefacein interfaceFontInfo- Returns:
- the full name of the font, i.e. font family + type face
-
getCharset
public FontCharset getCharset()
- Specified by:
getCharsetin interfaceFontInfo- Returns:
- the font charset
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getGenericProperties
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
- Specified by:
getGenericPropertiesin interfaceGenericRecord
-
-