WebFontBuilder

WebFontBuilder

概要

WebFontBuilder は Aspose.Font の FOSS における Python 用のクラスです。

WebFontBuilder は、CSS、HTML プレビューページ、およびデプロイ用マニフェストファイルを備えた完全なウェブフォントファミリーを生成できます。

このクラスは、Python プログラム内で WebFontBuilder オブジェクトを操作するための 6 つのメソッドを提供します。利用可能なメソッドは、build、build_family_matrix_preview、build_family_package、build_family_review_board、build_family_review_export_package、build_family_waterfall_preview です。Aspose.Font の Python 用 FOSS パッケージをインストールすれば、すべての公開メンバーは任意の Python アプリケーションからアクセス可能です。

メソッド

シグネチャ説明
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指定されたプレビュー文字列とファイルステムを使用して、提供されたウェブフォントバンドルのマトリックス‑レイアウトプレビュー画像を作成します
`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]

参照

 日本語