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