FileFontSource
FileFontSource
概述
FileFontSource 是 Aspose.PDF FOSS 中用于 Python 的一个类。继承自:FontSource。
发现单个文件中包含的字体。
此类提供 2 个方法,用于在 Python 程序中处理 FileFontSource 对象。可用的方法包括:__init__、get_font_definitions。在安装了 Aspose.PDF FOSS for Python 包之后,所有公共成员对任何 Python 应用程序均可访问。属性:file_path、priority。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
file_path | `` | 读取 | 获取文件路径。 |
priority | `` | 读取 | 获取优先级。 |
方法
| 签名 | 描述 |
|---|---|
| `init(file_path: str | os.PathLike[str], priority: int)` |
get_font_definitions() → list[FontDescriptor] | 返回字体定义。 |