| 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()
If font facets are embedded in the document, return the list of embedded facets.
|
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)
Sets the charset
|
void |
setFamily(FontFamily family)
Sets the font family class
|
void |
setPitch(FontPitch pitch)
Set the font pitch
|
void |
setTypeface(java.lang.String typeface)
Sets the font name
|
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)
FontInfosetTypeface in interface FontInfotypeface - the full name of the font, when null removes the font definition -
removal is implementation specificpublic FontCharset getCharset()
getCharset in interface FontInfopublic void setCharset(FontCharset charset)
FontInfosetCharset in interface FontInfocharset - the charsetpublic FontFamily getFamily()
public void setFamily(FontFamily family)
FontInfopublic FontPitch getPitch()
public void setPitch(FontPitch pitch)
FontInfopublic byte[] getPanose()
public java.util.List<FontFacet> getFacets()
FontInfopublic 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 fontsCopyright 2021 The Apache Software Foundation or its licensors, as applicable.