public class HSLFFontInfo extends java.lang.Object implements FontInfo
In PowerPoint Font is a shared resource and can be shared among text object in the presentation.
(表示演示文稿中使用的字体。在 PowerPoint 中,字体是一种共享资源,可以在演示文稿中的文本对象之间共享。)Modifier and Type | Class and Description |
---|---|
static class |
HSLFFontInfo.FontRenderType |
Constructor and Description |
---|
HSLFFontInfo(FontEntityAtom fontAtom)
Creates a new instance of HSLFFontInfo and initialize it from the supplied font atom
|
HSLFFontInfo(FontInfo fontInfo) |
HSLFFontInfo(java.lang.String typeface)
Creates a new instance of HSLFFontInfo with more or sensible defaults.
|
Modifier and Type | Method and Description |
---|---|
void |
addFacet(FontEmbeddedData facet) |
FontEntityAtom |
createRecord() |
FontCharset |
getCharset() |
java.util.List<FontEmbeddedData> |
getFacets()
If font facets are embedded in the document, return the list of embedded facets.
(如果字体分面嵌入在文档中,则返回嵌入分面的列表。)
|
FontFamily |
getFamily() |
FontEntityAtom |
getFontEntityAtom() |
java.lang.Integer |
getIndex()
Get the index within the collection of Font objects
(获取 Font 对象集合中的索引)
|
FontPitch |
getPitch() |
HSLFFontInfo.FontRenderType |
getRenderType() |
java.lang.String |
getTypeface() |
boolean |
isEmbedSubsetted() |
boolean |
isFontSubstitutable() |
void |
setCharset(FontCharset charset)
Sets the charset
(设置字符集)
|
void |
setEmbedSubsetted(boolean embedSubset) |
void |
setFamily(FontFamily family)
Sets the font family class
(设置字体系列类)
|
void |
setFontSubstitutable(boolean isSubstitutable) |
void |
setIndex(int index)
Sets the index within the collection of Font objects
(设置 Font 对象集合中的索引)
|
void |
setPitch(FontPitch pitch)
Set the font pitch
(设置字体间距)
|
void |
setRenderType(HSLFFontInfo.FontRenderType renderType) |
void |
setTypeface(java.lang.String typeface)
Sets the font name
(设置字体名称)
|
public HSLFFontInfo(java.lang.String typeface)
If you don't use default fonts (see HSLFFontInfoPredefined
) then the results of the font substitution will be better, if you also specify the other properties.
typeface
- the font name
(typeface - 字体名称)
public HSLFFontInfo(FontEntityAtom fontAtom)
public HSLFFontInfo(FontInfo fontInfo)
public java.lang.Integer getIndex()
FontInfo
public void setIndex(int index)
FontInfo
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 void setCharset(FontCharset charset)
FontInfo
setCharset
in interface
FontInfo
(接口 FontInfo 中的 setCharset)
charset
- the charset
(charset - 字符集)
public FontCharset getCharset()
getCharset
in interface
FontInfo
(接口 FontInfo 中的 getCharset)
public FontFamily getFamily()
public void setFamily(FontFamily family)
FontInfo
public FontPitch getPitch()
public void setPitch(FontPitch pitch)
FontInfo
public HSLFFontInfo.FontRenderType getRenderType()
public void setRenderType(HSLFFontInfo.FontRenderType renderType)
public boolean isEmbedSubsetted()
public void setEmbedSubsetted(boolean embedSubset)
public boolean isFontSubstitutable()
public void setFontSubstitutable(boolean isSubstitutable)
public FontEntityAtom createRecord()
public void addFacet(FontEmbeddedData facet)
public java.util.List<FontEmbeddedData> getFacets()
FontInfo
@Internal public FontEntityAtom getFontEntityAtom()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.