FontPreviewBuilder

FontPreviewBuilder

ภาพรวม

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 ใดก็ได้หลังจากติดตั้งแพ็คเกจ FOSS for 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: 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 การผิวหน้าก่อนและหลังภาพที่มีสีที่ได้รับการ และระดับลด

ดูเช่นกัน

 ภาษาไทย