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 FontInfo
public void setTypeface(java.lang.String typeface)
FontInfo
setTypeface
in interface FontInfo
typeface
- the full name of the font, when null
removes the font definition -
removal is implementation specificpublic FontCharset getCharset()
getCharset
in interface FontInfo
public void setCharset(FontCharset charset)
FontInfo
setCharset
in interface FontInfo
charset
- the charsetpublic FontFamily getFamily()
public void setFamily(FontFamily family)
FontInfo
public FontPitch getPitch()
public void setPitch(FontPitch pitch)
FontInfo
public byte[] getPanose()
public java.util.List<FontFacet> getFacets()
FontInfo
public FontFacet addFacet(java.io.InputStream fontData) throws java.io.IOException
java.io.IOException
public 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.