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
| Name | Type | Access | Description |
|---|---|---|---|
file_path | `` | Read | Gets the file path. |
priority | `` | Read | Gets the priority. |
Methods
| Signature | Description |
|---|---|
__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. |