WebFontBundle
Overview
WebFontBundle is a class in Aspose.Font FOSS for Python.
WebFontBundle.write_to writes the bundle to a directory and returns the list of written file paths.
This class provides 1 method for working with WebFontBundle 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: css, css_filename, family, font_assets, html, html_filename, and 5 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
family | str | Read/Write | Gets or sets the family. |
style | str | Read/Write | Gets or sets the style. |
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. |
font_assets | list[WebFontAsset] | Read/Write | Gets or sets the font assets. |
preview_font | Font | None | Read/Write | Gets or sets the preview font. |
review_label | str | None | Read/Write | Gets or sets the review label. |
Methods
| Signature | Description |
|---|---|
write_to(directory: str | Path) → list[Path] | writes the bundle’s CSS, HTML, manifest, and font assets to the given folder and returns a list of the createdPath` objects |