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

NameTypeAccessDescription
versionintRead/WriteGets or sets the version.
italic_anglefloatRead/WriteGets or sets the italic angle.
underline_positionintRead/WriteGets or sets the underline position.
underline_thicknessintRead/WriteGets or sets the underline thickness.
is_fixed_pitchintRead/WriteGets or sets the is fixed pitch.
glyph_nameslist[str] | NoneRead/WriteGets or sets the glyph names.

Methods

SignatureDescription
from_reader(r: BinaryReader, table_length: int)"PostTable"parses a TrueType 'post' table from a binary reader and returns aPostTable` instance
to_bytes()bytesCalls to_bytes on this PostTable instance.
glyph_name(gid: int)str | Nonereturns the glyph name string for a given glyph ID, orNone` if the name is unavailable

See Also