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
| Name | Type | Access | Description |
|---|---|---|---|
family_name | str | Read/Write | Gets or sets the family name. |
bundles | list[WebFontBundle] | Read/Write | Gets or sets the bundles. |
css | str | Read/Write | Gets or sets the css. |
html | str | Read/Write | Gets or sets the html. |
css_filename | str | Read/Write | Gets or sets the css filename. |
html_filename | str | Read/Write | Gets or sets the html filename. |
manifest_filename | str | Read/Write | Gets or sets the manifest filename. |
manifest | dict[str, object] | Read/Write | Gets or sets the manifest. |
assets | list[WebFontAsset] | Read/Write | Gets or sets the assets. |
Methods
| Signature | Description |
|---|---|
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 |