SystemFontSource
内容
[
隐藏
]遗产: java.lang.Object, com.aspose.words.FontSourceBase
public class SystemFontSource extends FontSourceBase
表示安装到系统的所有 TrueType 字体。
要了解更多信息,请访问Working with Fonts文档文章。
构造器
| 构造函数 | 描述 |
|---|---|
| SystemFontSource() | 克托尔。 |
| SystemFontSource(int priority) | 克托尔。 |
方法
| 方法 | 描述 |
|---|---|
| equals(Object arg0) | |
| getAvailableFonts() | 返回通过此源可用的字体列表。 |
| getClass() | |
| getFontDataInternal() | |
| getPriority() | 返回字体源优先级。 |
| getPriorityInternal() | |
| getSystemFontFolders() | 如果文件夹不可访问,则返回系统字体文件夹或空数组。 |
| getType() | 返回字体源的类型。 |
| getWarningCallback() | 当检测到可能导致格式保真度损失的问题时,在处理字体源期间调用。 |
| hashCode() | |
| notify() | |
| notifyAll() | |
| setWarningCallback(IWarningCallback value) | 当检测到可能导致格式保真度损失的问题时,在处理字体源期间调用。 |
| toString() | |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
SystemFontSource()
public SystemFontSource()
克托尔。
SystemFontSource(int priority)
public SystemFontSource(int priority)
克托尔。
参数:
| 范围 | 类型 | 描述 |
|---|---|---|
| priority | int | 字体来源优先。见FontSourceBase.getPriority()属性描述以获取更多信息。 |
equals(Object arg0)
public boolean equals(Object arg0)
参数:
| 范围 | 类型 | 描述 |
|---|---|---|
| arg0 | java.lang.Object |
退货: 布尔值
getAvailableFonts()
public ArrayList getAvailableFonts()
返回通过此源可用的字体列表。
退货: java.util.ArrayList
getClass()
public final native Class<?> getClass()
退货: java.lang.Class
getFontDataInternal()
public Iterable getFontDataInternal()
退货: java.lang.Iterable
getPriority()
public int getPriority()
返回字体源优先级。
当不同字体源中存在具有相同家族名称和样式的字体时,使用此值。在这种情况下,Aspose.Words 从具有更高优先级值的源中选择字体。
默认值为 0。
退货: int - 字体源优先级。
getPriorityInternal()
public int getPriorityInternal()
退货: 整数
getSystemFontFolders()
public static String[] getSystemFontFolders()
如果文件夹不可访问,则返回系统字体文件夹或空数组。在某些平台上,Aspose.Words 不仅可以通过文件夹搜索系统字体,还可以通过其他来源搜索系统字体。例如,在 Windows 平台上 Aspose.Words 也在注册表中搜索字体。
退货: java.lang.字符串[]
getType()
public int getType()
返回字体源的类型。
退货: int - 字体源的类型。返回值是其中之一FontSourceType常数。
getWarningCallback()
public IWarningCallback getWarningCallback()
当检测到可能导致格式保真度损失的问题时,在处理字体源期间调用。
退货: IWarningCallback - 相应的IWarningCallback价值。
hashCode()
public native int hashCode()
退货: 整数
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
setWarningCallback(IWarningCallback value)
public void setWarningCallback(IWarningCallback value)
当检测到可能导致格式保真度损失的问题时,在处理字体源期间调用。
参数:
| 范围 | 类型 | 描述 |
|---|---|---|
| value | IWarningCallback | 相应的IWarningCallback价值。 |
toString()
public String toString()
退货: java.lang.字符串
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
参数:
| 范围 | 类型 | 描述 |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
参数:
| 范围 | 类型 | 描述 |
|---|---|---|
| arg0 | long | |
| arg1 | int |