| 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 |
|---|---|
FontEntityAtom |
createRecord() |
FontCharset |
getCharset() |
FontFamily |
getFamily() |
java.lang.Integer |
getIndex()
Get the index within the collection of Font objects
|
FontPitch |
getPitch() |
HSLFFontInfo.FontRenderType |
getRenderType() |
java.lang.String |
getTypeface() |
boolean |
isEmbedSubsetted() |
boolean |
isFontSubstitutable() |
void |
setCharset(FontCharset charset)
Sets the charset
|
void |
setEmbedSubsetted(boolean embedSubset) |
void |
setFamily(FontFamily family)
Sets the font family class
|
void |
setFontSubstitutable(boolean isSubstitutable) |
void |
setIndex(int index)
Sets the index within the collection of Font objects
|
void |
setPitch(FontPitch pitch)
Set the font pitch
|
void |
setRenderType(HSLFFontInfo.FontRenderType renderType) |
void |
setTypeface(java.lang.String typeface)
Sets the font name
|
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.Integer getIndex()
FontInfopublic void setIndex(int index)
FontInfopublic java.lang.String getTypeface()
getTypeface in interface FontInfopublic void setTypeface(java.lang.String typeface)
FontInfosetTypeface in interface FontInfotypeface - the full name of the font, when null removes the font definition -
removal is implementation specificpublic void setCharset(FontCharset charset)
FontInfosetCharset in interface FontInfocharset - the charsetpublic FontCharset getCharset()
getCharset in interface FontInfopublic FontFamily getFamily()
public void setFamily(FontFamily family)
FontInfopublic FontPitch getPitch()
public void setPitch(FontPitch pitch)
FontInfopublic 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()
Copyright 2018 The Apache Software Foundation or its licensors, as applicable.