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: strNone)`
get_font_definitions() → list[FontDescriptor]返回字体定义。

另请参阅

 中文