FontPreviewBuilder

المعلومات العامة

FontPreviewBuilder هي فئة في Aspose.Font FOSS لـ Python.

FontPreviewBuilder.build(font, text, size, color, background, padding, antialias, file_stem, instance_coordinates, example_name, output_format) يولد PreviewImage (PNG أو SVG) من النص المقدم مع الخط المعطى.

يوفر هذا الفصل 4 طرق للعمل مع FontPreviewBuilder كائنات في برامج Python. المنهجيات المتاحة تشمل: build, compose_difference_preview, compose_overlay_preview, compose_sheet. جميع الأعضاء العامين يمكن الوصول إليهم من أي تطبيق بايثون بعد تثبيت حزمة Aspose.Font FOSS for Python.

الطرق

التوقيعوصف
`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 فوق الصور قبل وبعد مع الألوان المحددة والعتبة

انظر أيضاً

 العربية