FontPreviewBuilder
FontPreviewBuilder
Overview
FontPreviewBuilder यह एक क्लास है Aspose.Font FOSS के लिए Python।.
FontPreviewBuilder.build(फॉन्ट, पाठ, आकार, रंग, पृष्ठभूमि, पैडिंग, एंटीएलायस, फ़ाइल_स्टम, instance_coordinates, उदाहरण_नाम, output_format) प्रदान किए गए पाठ के एक PreviewImage (PNG या SVG) उत्पन्न करता है जो उस दिए गए फ़ॉर्ट के साथ रेंड किया जाता है।.
इस कक्षा में पायथन प्रोग्रामों में FontPreviewBuilder वस्तुओं के साथ काम करने के लिए 4 तरीके प्रदान किए जाते हैं।. उपलब्ध तरीकों में शामिल हैं: build, compose_difference_preview, compose_overlay_preview, compose_sheet. सभी सार्वजनिक सदस्य किसी भी Python अनुप्रयोग के लिए उपलब्ध हैं Aspose.Font FOSS को स्थापित करने के बाद Python पैकेज।.
Methods
| Signature | Description |
|---|---|
| `build(font: Font, text: str, size: float, color: tuple[int, int, int], background: tuple[int, int, int], padding: int, antialias: bool, file_stem: str | None, instance_coordinates: dict[str, float] |
| `compose_sheet(previews: list[PreviewImage], columns: int, gap: int, background: tuple[int, int, int], title: str | None, column_headers: list[str] |
compose_difference_preview(before: PreviewImage, after: PreviewImage, file_stem: str, background: tuple[int, int, int], before_color: tuple[int, int, int], after_color: tuple[int, int, int], overlap_color: tuple[int, int, int], threshold: int) → PreviewImage | एक PreviewImage उत्पन्न करता है जो निर्दिष्ट रंगों और सीमाओं का उपयोग करके पहले और बाद की छवियों के बीच अंतर को दर्शाता है |
compose_overlay_preview(before: PreviewImage, after: PreviewImage, file_stem: str, background: tuple[int, int, int], before_color: tuple[int, int, int], after_color: tuple[int, int, int], overlap_color: tuple[int, int, int], threshold: int) → PreviewImage | एक PreviewImage निर्दिष्ट रंगों और सीमा के साथ छवियों से पहले और बाद में अतिरिक्त बनाता है |