FontPreviewBuilder
FontPreviewBuilder
خلاصه ای
FontPreviewBuilder یک کلاس در Aspose.Font FOSS برای پایتون است.
FontPreviewBuilder.build(font, text, size, color, background, padding, antialias, file_stem, instance_coordinates, example_name, output_format) یک PreviewImage (PNG یا SVG) از متن ارائه شده را تولید می کند که با فونت داده شده نمایش داده می شود.
این کلاس ۴ روش برای کار با FontPreviewBuilder در برنامه های پایتون را فراهم می کند. روش های موجود شامل: build, compose_difference_preview, compose_overlay_preview, compose_sheet. همه اعضای عمومی پس از نصب بسته Aspose.Font FOSS برای پایتون به هر برنامه ی Python دسترسی دارند.
روش ها
| Signature | شرح: |
|---|---|
| `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 overlaying قبل و بعد از تصاویر با رنگ داده شده و آستانه |