WebFontFamilyPackage

WebFontFamilyPackage

Overview

WebFontFamilyPackage is a class in Aspose.Font FOSS for Python.

WebFontFamilyPackage.write_to(directory) creates a complete family package containing CSS, HTML, a manifest, and all bundled font assets for multiple style variants.

This class provides 1 method for working with WebFontFamilyPackage objects in Python programs. Available methods include: write_to. All public members are accessible to any Python application after installing the Aspose.Font FOSS for Python package. Properties: assets, bundles, css, css_filename, family_name, html, and 3 more.

Properties

NameTypeAccessDescription
family_namestrRead/WriteGets or sets the family name.
bundleslist[WebFontBundle]Read/WriteGets or sets the bundles.
cssstrRead/WriteGets or sets the css.
htmlstrRead/WriteGets or sets the html.
css_filenamestrRead/WriteGets or sets the css filename.
html_filenamestrRead/WriteGets or sets the html filename.
manifest_filenamestrRead/WriteGets or sets the manifest filename.
manifestdict[str, object]Read/WriteGets or sets the manifest.
assetslist[WebFontAsset]Read/WriteGets or sets the assets.

Methods

SignatureDescription
write_to(directory: str | Path)list[Path]` creates a family‑level package containing CSS, HTML, a manifest, and all font assets, returning the list of written file paths

See Also