FileFontSource

FileFontSource

Overview

FileFontSource is a class in Aspose.PDF FOSS for Python. Inherits from: FontSource.

Discover the font(s) contained in a single file.

This class provides 2 methods for working with FileFontSource 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: file_path, priority.

Properties

NameTypeAccessDescription
file_path``ReadGets the file path.
priority``ReadGets the priority.

Methods

SignatureDescription
__init__(file_path: str | os.PathLike[str], priority: int)Calls init(file_path, priority) on this FileFontSource instance.
get_font_definitions()list[FontDescriptor]Returns the font definitions.

See Also