PostTable
Overview
PostTable is a class in Aspose.Font FOSS for Python.
PostTable.version holds the version number of the post table.
This class provides 3 methods for working with PostTable objects in Python programs.
Available methods include: from_reader, glyph_name, to_bytes.
All public members are accessible to any Python application after installing the Aspose.Font FOSS for Python package.
Properties: glyph_names, is_fixed_pitch, italic_angle, underline_position, underline_thickness, version.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
version | int | Read/Write | Gets or sets the version. |
italic_angle | float | Read/Write | Gets or sets the italic angle. |
underline_position | int | Read/Write | Gets or sets the underline position. |
underline_thickness | int | Read/Write | Gets or sets the underline thickness. |
is_fixed_pitch | int | Read/Write | Gets or sets the is fixed pitch. |
glyph_names | list[str] | None | Read/Write | Gets or sets the glyph names. |
Methods
| Signature | Description |
|---|---|
from_reader(r: BinaryReader, table_length: int) → "PostTable" | parses a TrueType 'post' table from a binary reader and returns aPostTable` instance |
to_bytes() → bytes | Calls to_bytes on this PostTable instance. |
glyph_name(gid: int) → str | None | returns the glyph name string for a given glyph ID, orNone` if the name is unavailable |