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 class
HSLFFontInfo.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 void
addFacet(FontEmbeddedData facet)
FontEntityAtom
createRecord()
FontCharset
getCharset()
List<FontEmbeddedData>
getFacets()
FontFamily
getFamily()
FontEntityAtom
getFontEntityAtom()
Integer
getIndex()
FontPitch
getPitch()
HSLFFontInfo.FontRenderType
getRenderType()
String
getTypeface()
boolean
isEmbedSubsetted()
boolean
isFontSubstitutable()
void
setCharset(FontCharset charset)
void
setEmbedSubsetted(boolean embedSubset)
void
setFamily(FontFamily family)
void
setFontSubstitutable(boolean isSubstitutable)
void
setIndex(int index)
void
setPitch(FontPitch pitch)
void
setRenderType(HSLFFontInfo.FontRenderType renderType)
void
setTypeface(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:
getTypeface
in interfaceFontInfo
-
setTypeface
public void setTypeface(String typeface)
- Specified by:
setTypeface
in interfaceFontInfo
-
setCharset
public void setCharset(FontCharset charset)
- Specified by:
setCharset
in interfaceFontInfo
-
getCharset
public FontCharset getCharset()
- Specified by:
getCharset
in 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()
-
-