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
| Name | Type | Access | Description |
|---|---|---|---|
version | int | Read/Write | Gets or sets the version. |
fs_type | int | Read/Write | Gets or sets the fs type. |
s_typo_ascender | int | Read/Write | Gets or sets the s typo ascender. |
s_typo_descender | int | Read/Write | Gets or sets the s typo descender. |
s_typo_line_gap | int | Read/Write | Gets or sets the s typo line gap. |
us_win_ascent | int | Read/Write | Gets or sets the us win ascent. |
us_win_descent | int | Read/Write | Gets or sets the us win descent. |
fs_selection | int | Read/Write | Gets or sets the fs selection. |
panose | bytes | Read/Write | Gets or sets the panose. |
ach_vend_id | str | Read/Write | Gets or sets the ach vend id. |
Methods
| Signature | Description |
|---|---|
from_reader(r: BinaryReader, table_length: int) → "Os2Table" | Parses an OS/2 table from a binary reader and returns an Os2Table instance |
to_bytes() → bytes | Serializes the OS/2 table fields into a bytes object |