CompatibilityReport
ภาพรวม
CompatibilityReport เป็นคลาสใน Aspose.Font FOSS สําหรับ Python.
CompatibilityReport.to_json(indent, sort_keys) จะส่งรหัส JSON ของรายงาน และ write_ json ((target, indent , sort _ keys)) จะเขียน JON นั้นตรงไปยังไฟล์.
หมวดนี้ให้ 3 วิธีในการทํางานกับวัตถุ CompatibilityReport ในโปรแกรม Python. วิธีการที่ใช้ได้แก่: to_dict, to_json, write_json. สมาชิกสาธารณะทุกคนสามารถเข้าถึงการใช้งาน Python ใดก็ได้หลังจากติดตั้งแพ็คเกจ FOSS for Python. คุณสมบัติ: after_label, after_normalized_coordinates, before_label, before_normalized_coordinates, checked_codepoints, compared_glyphs,และอีก 3 คน.
คุณสมบัติ
| ชื่อ | ประเภท | Access | คําอธิบาย |
|---|---|---|---|
is_compatible | bool | อ่าน | รับค่า is compatible. |
before_label | str | อ่าน | รับป้ายก่อน. |
after_label | str | อ่าน | รับ label หลัง. |
checked_codepoints | tuple[int, ...] | อ่าน | รับ codepoints ที่ตรวจสอบแล้ว. |
compared_glyphs | int | อ่าน | รับ glyphs ที่เปรียบเทียบ. |
before_normalized_coordinates | dict[str, float] | อ่าน | รับพิกัดก่อนทำการทำให้เป็นมาตรฐาน. |
after_normalized_coordinates | dict[str, float] | อ่าน | รับพิกัดที่ทำการปรับให้เป็นมาตรฐานแล้ว. |
issues | tuple[GlyphCompatibilityIssue, ...] | อ่าน | ดึงข้อมูลปัญหา. |
interpolation_issues | tuple[GlyphInterpolationIssue, ...] | อ่าน | รับปัญหาการแทรกค่า. |
วิธีการ
| Signature | คําอธิบาย |
|---|---|
to_dict() → dict[str, object] | การส่งผลการแสดงตัวอย่างจากวัสดุประกอบคําศัพท์ของรายงานความเข้ากัน |
to_json(indent: int, sort_keys: bool) → str | กลับรหัส JSON ของรายงาน และ write_json ((เป้าหมาย, indent, sort_keys) เขียน JCON ตรงไปยังไฟล์ |
| `write_json(target: str | Path, indent: int, sort_keys: bool)` |