FontSubstitutionOptions

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

NameTypeAccessDescription
directoriestuple[Path, ...]ReadThe font directories to search, in order.
fontsMapping[str, bytes]ReadFont programs supplied directly, by label.
use_system_fontsboolReadWhether the platform font directories are indexed too.

Methods

SignatureDescription
__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()FontSubstitutionOptionsOptions that use the platform’s installed fonts.