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

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.

méthodes

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

Voir aussi

  • Aspose.Font — référence API d’entreprise
 Français