Package org.apache.poi.hslf.usermodel
Class HSLFFontInfo
java.lang.Object
org.apache.poi.hslf.usermodel.HSLFFontInfo
- All Implemented Interfaces:
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
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionHSLFFontInfo(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
Modifier and TypeMethodDescriptiongetIndex()Get the index within the collection of Font objectsgetPitch()booleanbooleanvoidsetCharset(FontCharset charset) Sets the charsetvoidsetEmbedSubsetted(boolean embedSubset) voidsetFamily(FontFamily family) Sets the font family classvoidsetFontSubstitutable(boolean isSubstitutable) voidsetIndex(int index) Sets the index within the collection of Font objectsvoidSet the font pitchvoidsetRenderType(HSLFFontInfo.FontRenderType renderType) voidsetTypeface(String typeface) Sets the font name
-
Constructor Details
-
HSLFFontInfo
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
Creates a new instance of HSLFFontInfo and initialize it from the supplied font atom -
HSLFFontInfo
-
-
Method Details
-
getIndex
Description copied from interface:FontInfoGet the index within the collection of Font objects -
setIndex
public void setIndex(int index) Description copied from interface:FontInfoSets the index within the collection of Font objects -
getTypeface
- Specified by:
getTypefacein interfaceFontInfo- Returns:
- the full name of the font, i.e. font family + type face
-
setTypeface
Description copied from interface:FontInfoSets the font name- Specified by:
setTypefacein interfaceFontInfo- Parameters:
typeface- the full name of the font, whennullremoves the font definition - removal is implementation specific
-
setCharset
Description copied from interface:FontInfoSets the charset- Specified by:
setCharsetin interfaceFontInfo- Parameters:
charset- the charset
-
getCharset
- Specified by:
getCharsetin interfaceFontInfo- Returns:
- the font charset
-
getFamily
-
setFamily
Description copied from interface:FontInfoSets the font family class -
getPitch
-
setPitch
Description copied from interface:FontInfoSet the font pitch -
getRenderType
-
setRenderType
-
isEmbedSubsetted
public boolean isEmbedSubsetted() -
setEmbedSubsetted
public void setEmbedSubsetted(boolean embedSubset) -
isFontSubstitutable
public boolean isFontSubstitutable() -
setFontSubstitutable
public void setFontSubstitutable(boolean isSubstitutable) -
createRecord
-