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()
If font facets are embedded in the document, return the list of embedded facets.
|
FontFamily |
getFamily() |
FontEntityAtom |
getFontEntityAtom() |
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()
FontInfo
public void setIndex(int index)
FontInfo
public java.lang.String getTypeface()
getTypeface
in interface FontInfo
public void setTypeface(java.lang.String typeface)
FontInfo
setTypeface
in interface FontInfo
typeface
- the full name of the font, when null
removes the font definition -
removal is implementation specificpublic void setCharset(FontCharset charset)
FontInfo
setCharset
in interface FontInfo
charset
- the charsetpublic FontCharset getCharset()
getCharset
in interface FontInfo
public FontFamily getFamily()
public void setFamily(FontFamily family)
FontInfo
public FontPitch getPitch()
public void setPitch(FontPitch pitch)
FontInfo
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()
FontInfo
@Internal public FontEntityAtom getFontEntityAtom()
Copyright 2020 The Apache Software Foundation or its licensors, as applicable.