Package org.apache.poi.hwmf.record
Class HwmfFont
java.lang.Object
org.apache.poi.hwmf.record.HwmfFont
- All Implemented Interfaces:
FontInfo
The Font object specifies the attributes of a logical font
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
ClipPrecision Flags specify clipping precision, which defines how to clip characters that are partially outside a clipping region.static enum
The output quality defines how carefully to attempt to match the logical font attributes to those of an actual physical font.static enum
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 -
Method Summary
Modifier and TypeMethodDescriptionint
int
getIndex()
Get the index within the collection of Font objectsint
getPitch()
int
int
int
getWidth()
int
init
(LittleEndianInputStream leis) boolean
isItalic()
boolean
boolean
void
setCharset
(FontCharset charset) Sets the charsetvoid
setFamily
(FontFamily family) Sets the font family classvoid
setIndex
(int index) Sets the index within the collection of Font objectsvoid
Set the font pitchvoid
setTypeface
(String typeface) Sets the font name
-
Constructor Details
-
HwmfFont
public HwmfFont()
-
-
Method Details
-
init
- Throws:
IOException
-
getHeight
public int 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
-
setFamily
Description copied from interface:FontInfo
Sets the font family class -
getPitch
-
setPitch
Description copied from interface:FontInfo
Set the font pitch -
getIndex
Description copied from interface:FontInfo
Get the index within the collection of Font objects -
setIndex
public void setIndex(int index) Description copied from interface:FontInfo
Sets the index within the collection of Font objects -
getTypeface
- Specified by:
getTypeface
in interfaceFontInfo
- Returns:
- the full name of the font, i.e. font family + type face
-
setTypeface
Description copied from interface:FontInfo
Sets the font name- Specified by:
setTypeface
in interfaceFontInfo
- Parameters:
typeface
- the full name of the font, whennull
removes the font definition - removal is implementation specific
-
getCharset
- Specified by:
getCharset
in interfaceFontInfo
- Returns:
- the font charset
-
setCharset
Description copied from interface:FontInfo
Sets the charset- Specified by:
setCharset
in interfaceFontInfo
- Parameters:
charset
- the charset
-