FontSubstitutionOptions
Overview
FontSubstitutionOptions is a class in Aspose.PDF FOSS for Python.
Font sources the renderer may substitute from.
This class declares 2 methods for FontSubstitutionOptions objects in Python programs.
Available methods include: __init__, system.
All public members are accessible to any Python application after installing the Aspose.PDF FOSS for Python package.
Properties: directories, fonts, use_system_fonts.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
directories | tuple[Path, ...] | Read | The font directories to search, in order. |
fonts | Mapping[str, bytes] | Read | Font programs supplied directly, by label. |
use_system_fonts | bool | Read | Whether the platform font directories are indexed too. |
Methods
| Signature | Description |
|---|---|
__init__(directories: Iterable[str | os.PathLike[str]], fonts: Mapping[str, bytes] | None, use_system_fonts: bool) | Calls init(directories, fonts, use_system_fonts) on this FontSubstitutionOptions instance. |
system() → FontSubstitutionOptions | Options that use the platform’s installed fonts. |