MemoryFontSource

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

NameTypeAccessDescription
font_data``ReadGets the font data.
name``ReadGets the name.
priority``ReadGets the priority.

Methods

SignatureDescription
__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.

See Also