MemoryFontSource
Overview
MemoryFontSource is a class in Aspose.PDF FOSS for Python.
Inherits from: FontSource.
Expose a font program supplied as in-memory bytes.
This class provides 2 methods for working with MemoryFontSource objects in Python programs.
Available methods include: __init__, get_font_definitions.
All public members are accessible to any Python application after installing the Aspose.PDF FOSS for Python package.
Properties: font_data, name, priority.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
font_data | `` | Read | Gets the font data. |
name | `` | Read | Gets the name. |
priority | `` | Read | Gets the priority. |
Methods
| Signature | Description |
|---|---|
__init__(font_data: bytes, priority: int, name: str | None) | Calls init(font_data, priority, name) on this MemoryFontSource instance. |
get_font_definitions() → list[FontDescriptor] | Returns the font definitions. |