WebFontBuilder
Overview
WebFontBuilder là một lớp trong Aspose.Font FOSS cho Python.
WebFontBuilder có thể tạo các gia đình web-font hoàn chỉnh với CSS, HTML Preview và tệp hiển thị sẵn sàng triển khai.
Khóa học này cung cấp 6 phương pháp để làm việc với các đối tượng WebFontBuilder trong các chương trình Python. Các phương pháp có sẵn bao gồm: build, build_family_matrix_preview, build_family_package, build_family_review_board, build_family_review_export_package, build_family_waterfall_preview. Tất cả các thành viên công cộng đều có thể truy cập bất kỳ ứng dụng Python nào sau khi cài đặt Aspose.Font FOSS cho gói Python.
Methods
| Signature | Description |
|---|---|
build_family_waterfall_preview(bundles: list[WebFontBundle], preview_text: str, file_stem: str) → PreviewImage | Tạo hình ảnh trước theo phong cách waterfall cho các gói phông web được cung cấp bằng văn bản và chữ số file đã cung ứng. |
build_family_matrix_preview(bundles: list[WebFontBundle], preview_text: str, file_stem: str) → PreviewImage | Tạo hình ảnh dự báo matrix-layout cho các gói phông web được cung cấp với văn bản dự kiến và chữ số tệp cụ thể |
| `build_family_review_board(bundles: list[WebFontBundle], family_name: str | None, preview_text: str, file_stem: str)→PreviewImage` |
| `build_family_review_export_package(bundles: list[WebFontBundle], family_name: str | None, preview_text: str, file_stem: str)→FamilyReviewExportPackage` |
| `build_family_package(bundles: list[WebFontBundle], family_name: str | None, css_filename: str, html_filename: str, preview_text: str, specimen_template: str)→WebFontFamilyPackage` |
| `build(font: Font, file_stem: str | None, include_woff: bool, font_display: str, preview_text: str, instance_coordinates: dict[str, float] |