Package org.apache.poi.hslf.usermodel
Class HSLFFontInfo
- java.lang.Object
-
- org.apache.poi.hslf.usermodel.HSLFFontInfo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHSLFFontInfo.FontRenderType
-
Constructor Summary
Constructors Constructor Description HSLFFontInfo(String typeface)Creates a new instance of HSLFFontInfo with more or sensible defaults.HSLFFontInfo(FontInfo fontInfo)HSLFFontInfo(FontEntityAtom fontAtom)Creates a new instance of HSLFFontInfo and initialize it from the supplied font atom
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFacet(FontEmbeddedData facet)FontEntityAtomcreateRecord()FontCharsetgetCharset()List<FontEmbeddedData>getFacets()FontFamilygetFamily()FontEntityAtomgetFontEntityAtom()IntegergetIndex()FontPitchgetPitch()HSLFFontInfo.FontRenderTypegetRenderType()StringgetTypeface()booleanisEmbedSubsetted()booleanisFontSubstitutable()voidsetCharset(FontCharset charset)voidsetEmbedSubsetted(boolean embedSubset)voidsetFamily(FontFamily family)voidsetFontSubstitutable(boolean isSubstitutable)voidsetIndex(int index)voidsetPitch(FontPitch pitch)voidsetRenderType(HSLFFontInfo.FontRenderType renderType)voidsetTypeface(String typeface)
-
-
-
Constructor Detail
-
HSLFFontInfo
public HSLFFontInfo(String typeface)
Creates a new instance of HSLFFontInfo with more or sensible defaults.If you don't use default fonts (see
HSLFFontInfoPredefined) then the results of the font substitution will be better, if you also specify the other properties.- Parameters:
typeface- the font name
-
HSLFFontInfo
public HSLFFontInfo(FontEntityAtom fontAtom)
Creates a new instance of HSLFFontInfo and initialize it from the supplied font atom
-
HSLFFontInfo
public HSLFFontInfo(FontInfo fontInfo)
-
-
Method Detail
-
getTypeface
public String getTypeface()
- Specified by:
getTypefacein interfaceFontInfo
-
setTypeface
public void setTypeface(String typeface)
- Specified by:
setTypefacein interfaceFontInfo
-
setCharset
public void setCharset(FontCharset charset)
- Specified by:
setCharsetin interfaceFontInfo
-
getCharset
public FontCharset getCharset()
- Specified by:
getCharsetin interfaceFontInfo
-
getFamily
public FontFamily getFamily()
-
setFamily
public void setFamily(FontFamily family)
-
getRenderType
public HSLFFontInfo.FontRenderType getRenderType()
-
setRenderType
public void setRenderType(HSLFFontInfo.FontRenderType renderType)
-
isEmbedSubsetted
public boolean isEmbedSubsetted()
-
setEmbedSubsetted
public void setEmbedSubsetted(boolean embedSubset)
-
isFontSubstitutable
public boolean isFontSubstitutable()
-
setFontSubstitutable
public void setFontSubstitutable(boolean isSubstitutable)
-
createRecord
public FontEntityAtom createRecord()
-
addFacet
public void addFacet(FontEmbeddedData facet)
-
getFacets
public List<FontEmbeddedData> getFacets()
-
getFontEntityAtom
@Internal public FontEntityAtom getFontEntityAtom()
-
-