FontSubstitutionOptions
FontSubstitutionOptions
概述
FontSubstitutionOptions 是 Aspose.PDF FOSS 中用于 Python 的类。
渲染器可能替换的字体来源。
此类在 Python 程序中的 FontSubstitutionOptions 对象声明了 2 个方法。可用的方法包括:__init__、system。在安装 Aspose.PDF FOSS for Python 包后,所有公共成员对任何 Python 应用程序均可访问。属性:directories、fonts、use_system_fonts。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
directories | tuple[Path, ...] | 读取 | 按顺序搜索的字体目录。 |
fonts | Mapping[str, bytes] | 读取 | 直接提供的字体程序,按标签。 |
use_system_fonts | bool | 读取 | 平台字体目录是否也被索引。 |
方法
| 签名 | 描述 |
|---|---|
| `init(directories: Iterable[str | os.PathLike[str]], fonts: Mapping[str, bytes] |
system() → FontSubstitutionOptions | 使用平台已安装字体的选项。 |