FolderFontSource
Overview
FolderFontSource is a class in Aspose.PDF FOSS for Python.
Inherits from: FontSource.
Collect fonts from a directory (optionally recursing into subfolders).
This class provides 2 methods for working with FolderFontSource 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: folder_path, priority, scan_subdirectories.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
folder_path | `` | Read | Gets the folder path. |
scan_subdirectories | `` | Read | Gets the scan subdirectories. |
priority | `` | Read | Gets the priority. |
Methods
| Signature | Description |
|---|---|
__init__(folder_path: str | os.PathLike[str], priority: int, scan_subdirectories: bool) | Calls init(folder_path, priority, scan_subdirectories) on this FolderFontSource instance. |
get_font_definitions() → list[FontDescriptor] | Returns the font definitions. |