Os2Table
Vue de l’ensemble
‘Os2Table’ est une classe dans Aspose.Font FOSS pour Python.
Os2Table.from_reader(r, table_longueur) parse une table OS/2 d’un lecteur binaire et retourne un cas de tables Os2.
Cette classe fournit 2 méthodes pour travailler avec les objets Os2Table dans les programmes Python. Les méthodologies disponibles comprennent: from_reader, to_bytes. Tous les membres publics sont accessibles à n’importe quelle application Pythone après l’installation de l’Aspose.Font FOSS pour le package Pyathon. Propriétés: ‘ach_vend_id , 'fs_selection ; ‘fs_type; 'panose et ’s-typo_ascender’, et 4 autres.
Propriétés
| 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. |
méthodes
| 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 |
Voir aussi
- Aspose.Font — référence API d’entreprise