PostTable
Overview
PostTable เป็นคลาสใน Aspose.Font FOSS สําหรับ Python.
PostTable.version holds the version number of the post table.
หมวดนี้ให้ 3 วิธีในการทํางานกับวัตถุ PostTable ในโปรแกรม Python. วิธีการที่ใช้ได้แก่: from_reader, glyph_name, to_bytes. สมาชิกสาธารณะทุกคนสามารถเข้าถึงการใช้งาน Python ใดก็ได้หลังจากติดตั้งแพ็คเกจ FOSS for Python. คุณสมบัติ: glyph_names, is_fixed_pitch, italic_angle, underline_position, underline_thickness, version.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
version | int | อ่าน/เขียน | ได้รับหรือกําหนดเวอร์ชั่น. |
italic_angle | float | อ่าน/เขียน | ได้หรือกําหนดมุมอักษรคราง. |
underline_position | int | อ่าน/เขียน | ได้หรือกําหนดตําแหน่งของเส้นใต้ดิน. |
underline_thickness | int | อ่าน/เขียน | ได้หรือกําหนดความหนาของเส้นใต้ดิน. |
is_fixed_pitch | int | อ่าน/เขียน | ได้หรือกําหนดความสูงที่คงไว้. |
glyph_names | `list[str] | None` | อ่าน/เขียน |
Methods
| Signature | Description |
|---|---|
from_reader(r: BinaryReader, table_length: int) → "PostTable" | parses a TrueType 'post' table from a binary reader and returns aPostTable` ตัวอย่าง |
to_bytes() → bytes | เรียก to_bytes ในตัวอย่าง PostTable นี้. |
glyph_name(gid: int) → `str | None` |