FontEncoding
ภาพรวม
FontEncoding เป็นคลาสใน Aspose.Font FOSS สําหรับ Python. ทายาทจาก: ABC.
แผนที่ Unicode โค้ดปอยท์ เป็นไกลิฟ์ IDs.
หมวดนี้ให้ 2 วิธีในการทํางานกับวัตถุ FontEncoding ในโปรแกรม Python. วิธีการที่ใช้ได้แก่: get_all_codepoints, unicode_to_gid. สมาชิกสาธารณะทุกคนสามารถเข้าถึงการใช้งาน Python ใดก็ได้หลังจากติดตั้งแพ็คเกจ FOSS for Python.
วิธีการ
| Signature | คําอธิบาย |
|---|---|
unicode_to_gid(codepoint: int) → GlyphId | เปลี่ยนรหัส Unicode เป็น GlyphId ที่ตรงกับมัน |
get_all_codepoints() → list[int] | กลับจุดโค้ดทั้งหมด. |