org.apache.poi.hslf.usermodel
Class HSLFFontInfo
java.lang.Object
org.apache.poi.hslf.usermodel.HSLFFontInfo
- All Implemented Interfaces:
- FontInfo
public class HSLFFontInfo
- extends java.lang.Object
- implements FontInfo
Represents a Font used in a presentation.
In PowerPoint Font is a shared resource and can be shared among text object in the presentation.
- Since:
- POI 3.17-beta2
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HSLFFontInfo
public HSLFFontInfo(java.lang.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)
getIndex
public java.lang.Integer getIndex()
- Specified by:
getIndex in interface FontInfo
setIndex
public void setIndex(int index)
- Specified by:
setIndex in interface FontInfo
getTypeface
public java.lang.String getTypeface()
- Specified by:
getTypeface in interface FontInfo
setTypeface
public void setTypeface(java.lang.String typeface)
- Specified by:
setTypeface in interface FontInfo
setCharset
public void setCharset(FontCharset charset)
- Specified by:
setCharset in interface FontInfo
getCharset
public FontCharset getCharset()
- Specified by:
getCharset in interface FontInfo
getFamily
public FontFamily getFamily()
- Specified by:
getFamily in interface FontInfo
setFamily
public void setFamily(FontFamily family)
- Specified by:
setFamily in interface FontInfo
getPitch
public FontPitch getPitch()
- Specified by:
getPitch in interface FontInfo
setPitch
public void setPitch(FontPitch pitch)
- Specified by:
setPitch in interface FontInfo
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()