FolderFontSource

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

NameTypeAccessDescription
folder_path``ReadGets the folder path.
scan_subdirectories``ReadGets the scan subdirectories.
priority``ReadGets the priority.

Methods

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

See Also