| Constructor and Description |
|---|
XSLFFontInfo(XMLSlideShow ppt,
org.openxmlformats.schemas.presentationml.x2006.main.CTEmbeddedFontListEntry fontListEntry) |
XSLFFontInfo(XMLSlideShow ppt,
java.lang.String typeface) |
| Modifier and Type | Method and Description |
|---|---|
FontFacet |
addFacet(java.io.InputStream fontData) |
static XSLFFontInfo |
addFontToSlideShow(XMLSlideShow ppt,
java.io.InputStream fontStream)
Adds or updates a (MTX-) font
|
FontCharset |
getCharset() |
java.util.List<FontFacet> |
getFacets() |
FontFamily |
getFamily() |
static java.util.List<XSLFFontInfo> |
getFonts(XMLSlideShow ppt)
Return all registered fonts
|
byte[] |
getPanose() |
FontPitch |
getPitch() |
java.lang.String |
getTypeface() |
void |
setCharset(FontCharset charset) |
void |
setFamily(FontFamily family) |
void |
setPitch(FontPitch pitch) |
void |
setTypeface(java.lang.String typeface) |
public XSLFFontInfo(XMLSlideShow ppt, java.lang.String typeface)
public XSLFFontInfo(XMLSlideShow ppt, org.openxmlformats.schemas.presentationml.x2006.main.CTEmbeddedFontListEntry fontListEntry)
public java.lang.String getTypeface()
getTypeface in interface FontInfopublic void setTypeface(java.lang.String typeface)
setTypeface in interface FontInfopublic FontCharset getCharset()
getCharset in interface FontInfopublic void setCharset(FontCharset charset)
setCharset in interface FontInfopublic FontFamily getFamily()
public void setFamily(FontFamily family)
public java.util.List<FontFacet> getFacets()
public FontFacet addFacet(java.io.InputStream fontData) throws java.io.IOException
java.io.IOExceptionpublic static XSLFFontInfo addFontToSlideShow(XMLSlideShow ppt, java.io.InputStream fontStream) throws java.io.IOException
ppt - the slideshow which will contain the fontfontStream - the (MTX) font data as streamjava.io.IOException - if the font data can't be storedpublic static java.util.List<XSLFFontInfo> getFonts(XMLSlideShow ppt)
ppt - the slideshow containing the fonts