FontFile
概述
FontFile 是 Aspose.3D FOSS 中用于 Python 的一个类。继承自:A3DObject。
字体文件包含字形定义,可用于创建文本配置文件。
此类为 Python 程序中的 FontFile 对象声明了 7 个方法。可用的方法包括:__init__、find_property、from_file、get_property、parse、remove_property、set_property。在安装了 Aspose.3D FOSS for Python 包后,所有公共成员对任何 Python 应用程序均可访问。属性:name、properties。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
name | str | 读写 | 获取或设置名称。 |
properties | PropertyCollection | 读取 | 获取属性。 |
方法
| 签名 | 描述 |
|---|---|
__init__(name: str) | Calls init(name) 在此 FontFile 实例上。 |
from_file(file_name: str) → 'FontFile' | 从文件名加载 FontFile。 |
parse(data: bytes) → 'FontFile' | 从字节数据中解析 FontFile。 |
find_property(property_name: str) | 在此 FontFile 实例上调用 find_property(property_name)。 |
get_property(property: str) | 在此 FontFile 实例上调用 get_property(property)。 |
set_property(property: str, value) | 设置属性值。 |
remove_property(property) | 在此 FontFile 实例上调用 remove_property(property)。 |