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 class
HwmfFont.WmfClipPrecision
ClipPrecision Flags specify clipping precision, which defines how to clip characters that are partially outside a clipping region.static class
HwmfFont.WmfFontQuality
The output quality defines how carefully to attempt to match the logical font attributes to those of an actual physical font.static class
HwmfFont.WmfOutPrecision
The 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 FontCharset
getCharset()
HwmfFont.WmfClipPrecision
getClipPrecision()
int
getEscapement()
FontFamily
getFamily()
java.util.Map<java.lang.String,java.util.function.Supplier<?>>
getGenericProperties()
double
getHeight()
int
getOrientation()
HwmfFont.WmfOutPrecision
getOutPrecision()
FontPitch
getPitch()
int
getPitchAndFamily()
HwmfFont.WmfFontQuality
getQuality()
java.lang.String
getTypeface()
int
getWeight()
int
getWidth()
int
init(LittleEndianInputStream leis, long recordSize)
void
initDefaults()
boolean
isItalic()
boolean
isStrikeOut()
boolean
isUnderline()
java.lang.String
toString()
-
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:
getTypeface
in interfaceFontInfo
- Returns:
- the full name of the font, i.e. font family + type face
-
getCharset
public FontCharset getCharset()
- Specified by:
getCharset
in interfaceFontInfo
- Returns:
- the font charset
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getGenericProperties
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
- Specified by:
getGenericProperties
in interfaceGenericRecord
-
-