WebFontBuilder

WebFontBuilder

Overview

WebFontBuilder 是Python的Aspose.Font FOSS中的一个类.

WebFontBuilder可以生成完整的Web字体家族,包括CSS,HTML预览页面和准备部署的公示文件.

这个类提供了6种方法,用于在Python程序中使用WebFontBuilder 对象. 有的方法包括: build, build_family_matrix_preview, build_family_package, build_family_review_board, build_family_review_export_package, build_family_waterfall_preview. 在安装Python包的Aspose.Font FOSS后,所有公众成员都可以访问任何 Python 应用程序.

Methods

SignatureDescription
build_family_waterfall_preview(bundles: list[WebFontBundle], preview_text: str, file_stem: str)PreviewImage使用所提供的预览文本和文件茎生成给定网页字体包的布式预视图像.
build_family_matrix_preview(bundles: list[WebFontBundle], preview_text: str, file_stem: str)PreviewImage为提供的Web字体包创建一个矩阵布局预览图像,并指定预视文本和文件茎.
`build_family_review_board(bundles: list[WebFontBundle], family_name: strNone, preview_text: str, file_stem: str)PreviewImage`
`build_family_review_export_package(bundles: list[WebFontBundle], family_name: strNone, preview_text: str, file_stem: str)FamilyReviewExportPackage`
`build_family_package(bundles: list[WebFontBundle], family_name: strNone, css_filename: str, html_filename: str, preview_text: str, specimen_template: str)WebFontFamilyPackage`
`build(font: Font, file_stem: strNone, include_woff: bool, font_display: str, preview_text: str, instance_coordinates: dict[str, float]

See Also

 中文