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
(添加或更新 (MTX-) 字体)
|
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
(接口 FontInfo 中的 getTypeface)
public void setTypeface(java.lang.String typeface)
FontInfo
setTypeface
in interface
FontInfo
(接口 FontInfo 中的 setTypeface)
typeface
- the full name of the font, when
null
removes the font definition - removal is implementation specific
(typeface - 字体的全名,当 null 删除字体定义时 - 删除是特定于实现的)
public FontCharset getCharset()
getCharset
in interface
FontInfo
(接口 FontInfo 中的 getCharset)
public void setCharset(FontCharset charset)
FontInfo
setCharset
in interface
FontInfo
(接口 FontInfo 中的 setCharset)
charset
- the charset
(charset - 字符集)
public 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
(java.io.IOException)
public static XSLFFontInfo addFontToSlideShow(XMLSlideShow ppt, java.io.InputStream fontStream) throws java.io.IOException
ppt
- the slideshow which will contain the font
(ppt - 包含字体的幻灯片)
fontStream
- the (MTX) font data as stream
(fontStream - (MTX) 字体数据作为流)
java.io.IOException
- if the font data can't be stored
(java.io.IOException - 如果无法存储字体数据)
public static java.util.List<XSLFFontInfo> getFonts(XMLSlideShow ppt)
ppt
- the slideshow containing the fonts
(ppt - 包含字体的幻灯片)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.