MemoryFontSource
MemoryFontSource
概述
MemoryFontSource 是 Aspose.PDF FOSS 中用于 Python 的类。继承自:FontSource。
公开以内存字节提供的字体程序。
此类提供 2 种方法,用于在 Python 程序中处理 MemoryFontSource 对象。可用的方法包括:__init__、get_font_definitions。在安装 Aspose.PDF FOSS for Python 包后,所有公共成员对任何 Python 应用程序均可访问。属性:font_data、name、priority。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
font_data | `` | 读取 | 获取字体数据。 |
name | `` | 读取 | 获取名称。 |
priority | `` | 读取 | 获取优先级。 |
方法
| 签名 | 描述 |
|---|---|
| `init(font_data: bytes, priority: int, name: str | None)` |
get_font_definitions() → list[FontDescriptor] | 返回字体定义。 |