Package org.apache.poi.xslf.usermodel
Class XSLFFontInfo
- java.lang.Object
-
- org.apache.poi.xslf.usermodel.XSLFFontInfo
-
-
Constructor Summary
Constructors Constructor Description XSLFFontInfo(XMLSlideShow ppt, String typeface)XSLFFontInfo(XMLSlideShow ppt, org.openxmlformats.schemas.presentationml.x2006.main.CTEmbeddedFontListEntry fontListEntry)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FontFacetaddFacet(InputStream fontData)static XSLFFontInfoaddFontToSlideShow(XMLSlideShow ppt, InputStream fontStream)Adds or updates a (MTX-) fontFontCharsetgetCharset()List<FontFacet>getFacets()FontFamilygetFamily()static List<XSLFFontInfo>getFonts(XMLSlideShow ppt)Return all registered fontsbyte[]getPanose()FontPitchgetPitch()StringgetTypeface()voidsetCharset(FontCharset charset)voidsetFamily(FontFamily family)voidsetPitch(FontPitch pitch)voidsetTypeface(String typeface)
-
-
-
Constructor Detail
-
XSLFFontInfo
public XSLFFontInfo(XMLSlideShow ppt, String typeface)
-
XSLFFontInfo
public XSLFFontInfo(XMLSlideShow ppt, org.openxmlformats.schemas.presentationml.x2006.main.CTEmbeddedFontListEntry fontListEntry)
-
-
Method Detail
-
getTypeface
public String getTypeface()
- Specified by:
getTypefacein interfaceFontInfo
-
setTypeface
public void setTypeface(String typeface)
- Specified by:
setTypefacein interfaceFontInfo
-
getCharset
public FontCharset getCharset()
- Specified by:
getCharsetin interfaceFontInfo
-
setCharset
public void setCharset(FontCharset charset)
- Specified by:
setCharsetin interfaceFontInfo
-
getFamily
public FontFamily getFamily()
-
setFamily
public void setFamily(FontFamily family)
-
addFacet
public FontFacet addFacet(InputStream fontData) throws IOException
- 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
public static List<XSLFFontInfo> getFonts(XMLSlideShow ppt)
Return all registered fonts- Parameters:
ppt- the slideshow containing the fonts- Returns:
- the list of registered fonts
-
-