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

NameTypeAccessDescription
familystrRead/WriteGets or sets the family.
stylestrRead/WriteGets or sets the style.
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.
font_assetslist[WebFontAsset]Read/WriteGets or sets the font assets.
preview_fontFont | NoneRead/WriteGets or sets the preview font.
review_labelstr | NoneRead/WriteGets or sets the review label.

Methods

SignatureDescription
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

See Also