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, org.openxmlformats.schemas.presentationml.x2006.main.CTEmbeddedFontListEntry fontListEntry) -
Method Summary
Modifier and TypeMethodDescriptionaddFacet(InputStream fontData) static XSLFFontInfoaddFontToSlideShow(XMLSlideShow ppt, InputStream fontStream) Adds or updates a (MTX-) fontstatic List<XSLFFontInfo>getFonts(XMLSlideShow ppt) Return all registered fontsbyte[]getPitch()voidsetCharset(FontCharset charset) voidsetFamily(FontFamily family) voidvoidsetTypeface(String typeface)
-
Constructor Details
-
XSLFFontInfo
-
XSLFFontInfo
public XSLFFontInfo(XMLSlideShow ppt, org.openxmlformats.schemas.presentationml.x2006.main.CTEmbeddedFontListEntry fontListEntry)
-
-
Method Details
-
getTypeface
- Specified by:
getTypefacein interfaceFontInfo
-
setTypeface
- Specified by:
setTypefacein interfaceFontInfo
-
getCharset
- Specified by:
getCharsetin interfaceFontInfo
-
setCharset
- Specified by:
setCharsetin interfaceFontInfo
-
getFamily
-
setFamily
-
getPitch
-
setPitch
-
getPanose
public byte[] getPanose() -
getFacets
-
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:
- 4.1.0
-
getFonts
Return all registered fonts- Parameters:
ppt- the slideshow containing the fonts- Returns:
- the list of registered fonts
-