Package org.apache.poi.xslf.usermodel
Class XSLFFontInfo
java.lang.Object
org.apache.poi.xslf.usermodel.XSLFFontInfo
- All Implemented Interfaces:
FontInfo
-
Constructor Summary
ConstructorsConstructorDescriptionXSLFFontInfo(XMLSlideShow ppt, String typeface) XSLFFontInfo(XMLSlideShow ppt, CTEmbeddedFontListEntry fontListEntry) -
Method Summary
Modifier and TypeMethodDescriptionaddFacet(InputStream fontData) static XSLFFontInfoaddFontToSlideShow(XMLSlideShow ppt, InputStream fontStream) Adds or updates a (MTX-) fontIf font facets are embedded in the document, return the list of embedded facets.static List<XSLFFontInfo> getFonts(XMLSlideShow ppt) Return all registered fontsbyte[]getPitch()voidsetCharset(FontCharset charset) Sets the charsetvoidsetFamily(FontFamily family) Sets the font family classvoidSet the font pitchvoidsetTypeface(String typeface) Sets the font name
-
Constructor Details
-
XSLFFontInfo
-
XSLFFontInfo
-
-
Method Details
-
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
-
getCharset
- Specified by:
getCharsetin interfaceFontInfo- Returns:
- the font charset
-
setCharset
Description copied from interface:FontInfoSets the charset- Specified by:
setCharsetin interfaceFontInfo- Parameters:
charset- the charset
-
getFamily
-
setFamily
Description copied from interface:FontInfoSets the font family class -
getPitch
-
setPitch
Description copied from interface:FontInfoSet the font pitch -
getPanose
public byte[] getPanose() -
getFacets
Description copied from interface:FontInfoIf font facets are embedded in the document, return the list of embedded facets. The font embedding is experimental, therefore the API can change. -
addFacet
- Throws:
IOException
-
addFontToSlideShow
public static XSLFFontInfo addFontToSlideShow(XMLSlideShow ppt, InputStream fontStream) throws IOException Adds or updates a (MTX-) font- Parameters:
ppt- the slideshow which will contain the fontfontStream- the (MTX) font data as stream- Returns:
- a font data object
- Throws:
IOException- if the font data can't be stored- Since:
- POI 4.1.0
-
getFonts
Return all registered fonts- Parameters:
ppt- the slideshow containing the fonts- Returns:
- the list of registered fonts
-