Os2Table

Overview

Os2Table is a class in Aspose.Font FOSS for Python.

Os2Table.from_reader(r, table_length) parses an OS/2 table from a binary reader and returns an Os2Table instance.

This class provides 2 methods for working with Os2Table objects in Python programs. Available methods include: from_reader, to_bytes. All public members are accessible to any Python application after installing the Aspose.Font FOSS for Python package. Properties: ach_vend_id, fs_selection, fs_type, panose, s_typo_ascender, s_typo_descender, and 4 more.

Properties

NameTypeAccessDescription
versionintRead/WriteGets or sets the version.
fs_typeintRead/WriteGets or sets the fs type.
s_typo_ascenderintRead/WriteGets or sets the s typo ascender.
s_typo_descenderintRead/WriteGets or sets the s typo descender.
s_typo_line_gapintRead/WriteGets or sets the s typo line gap.
us_win_ascentintRead/WriteGets or sets the us win ascent.
us_win_descentintRead/WriteGets or sets the us win descent.
fs_selectionintRead/WriteGets or sets the fs selection.
panosebytesRead/WriteGets or sets the panose.
ach_vend_idstrRead/WriteGets or sets the ach vend id.

Methods

SignatureDescription
from_reader(r: BinaryReader, table_length: int)"Os2Table"Parses an OS/2 table from a binary reader and returns an Os2Table instance
to_bytes()bytesSerializes the OS/2 table fields into a bytes object

See Also