FolderFontSource
FolderFontSource
概述
FolderFontSource 是 Aspose.PDF FOSS 中用于 Python 的类。继承自:FontSource。
从目录收集字体(可选地递归子文件夹)。
此类提供 2 个用于在 Python 程序中处理 FolderFontSource 对象的方法。可用的方法包括:__init__、get_font_definitions。在安装 Aspose.PDF 用于 Python 的 FOSS 包后,所有公共成员对任何 Python 应用程序均可访问。属性:folder_path、priority、scan_subdirectories。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
folder_path | `` | 读取 | 获取文件夹路径。 |
scan_subdirectories | `` | 读取 | 获取扫描子目录。 |
priority | `` | 读取 | 获取优先级。 |
方法
| 签名 | 描述 |
|---|---|
| `init(folder_path: str | os.PathLike[str], priority: int, scan_subdirectories: bool)` |
get_font_definitions() → list[FontDescriptor] | 返回字体定义。 |