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 enumClipPrecision 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
Modifier and TypeMethodDescriptionintintgetIndex()Get the index within the collection of Font objectsintgetPitch()intintintgetWidth()intinit(LittleEndianInputStream leis) booleanisItalic()booleanbooleanvoidsetCharset(FontCharset charset) Sets the charsetvoidsetFamily(FontFamily family) Sets the font family classvoidsetIndex(int index) Sets the index within the collection of Font objectsvoidSet the font pitchvoidsetTypeface(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:FontInfoSets the font family class -
getPitch
-
setPitch
Description copied from interface:FontInfoSet the font pitch -
getIndex
Description copied from interface:FontInfoGet the index within the collection of Font objects -
setIndex
public void setIndex(int index) Description copied from interface:FontInfoSets the index within the collection of Font objects -
getTypeface
- Specified by:
getTypefacein interfaceFontInfo- Returns:
- the full name of the font, i.e. font family + type face
-
setTypeface
Description copied from interface:FontInfoSets the font name- Specified by:
setTypefacein interfaceFontInfo- Parameters:
typeface- the full name of the font, whennullremoves the font definition - removal is implementation specific
-
getCharset
- Specified by:
getCharsetin interfaceFontInfo- Returns:
- the font charset
-
setCharset
Description copied from interface:FontInfoSets the charset- Specified by:
setCharsetin interfaceFontInfo- Parameters:
charset- the charset
-