| Modifier and Type | Class and Description |
|---|---|
static class |
HSLFFontInfo.FontRenderType |
| Constructor and Description |
|---|
HSLFFontInfo(FontEntityAtom fontAtom)
Creates a new instance of HSLFFontInfo and initialize it from the supplied font atom
|
HSLFFontInfo(FontInfo fontInfo) |
HSLFFontInfo(java.lang.String typeface)
Creates a new instance of HSLFFontInfo with more or sensible defaults.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFacet(FontEmbeddedData facet) |
FontEntityAtom |
createRecord() |
FontCharset |
getCharset() |
java.util.List<FontEmbeddedData> |
getFacets() |
FontFamily |
getFamily() |
FontEntityAtom |
getFontEntityAtom() |
java.lang.Integer |
getIndex() |
FontPitch |
getPitch() |
HSLFFontInfo.FontRenderType |
getRenderType() |
java.lang.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(java.lang.String typeface) |
public HSLFFontInfo(java.lang.String typeface)
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.
typeface - the font namepublic HSLFFontInfo(FontEntityAtom fontAtom)
public HSLFFontInfo(FontInfo fontInfo)
public java.lang.String getTypeface()
getTypeface in interface FontInfopublic void setTypeface(java.lang.String typeface)
setTypeface in interface FontInfopublic void setCharset(FontCharset charset)
setCharset in interface FontInfopublic FontCharset getCharset()
getCharset in interface FontInfopublic FontFamily getFamily()
public void setFamily(FontFamily family)
public HSLFFontInfo.FontRenderType getRenderType()
public void setRenderType(HSLFFontInfo.FontRenderType renderType)
public boolean isEmbedSubsetted()
public void setEmbedSubsetted(boolean embedSubset)
public boolean isFontSubstitutable()
public void setFontSubstitutable(boolean isSubstitutable)
public FontEntityAtom createRecord()
public void addFacet(FontEmbeddedData facet)
public java.util.List<FontEmbeddedData> getFacets()
@Internal public FontEntityAtom getFontEntityAtom()