FontPreviewBuilder

FontPreviewBuilder

Overview

FontPreviewBuilder є клас у Aspose.Font FOSS для Python.

FontPreviewBuilder.build(font, text, size, color, background, padding, antialias, file_stem, instance_coordinates, instance_name, output_format) генерує PreviewImage (PNG або SVG) з наданого тексту, який рендерується за допомогою даного шрифту.

Цей клас надає 4 методи для роботи з об’єктами FontPreviewBuilder в програмах Python. Доступні методи включають: build, compose_difference_preview, compose_overlay_preview, compose_sheet. Всі публічні члени доступні будь-якій додаткові Python після встановлення Aspose.Font FOSS для пакету Python.

Methods

SignatureDescription
`build(font: Font, text: str, size: float, color: tuple[int, int, int], background: tuple[int, int, int], padding: int, antialias: bool, file_stem: strNone, instance_coordinates: dict[str, float]
`compose_sheet(previews: list[PreviewImage], columns: int, gap: int, background: tuple[int, int, int], title: strNone, 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 накладання перед і після зображень з даними кольорами та порогом

See Also

 Українська