LocaTable

Vue de l’ensemble

‘LocaTable’ est une classe dans Aspose.Font FOSS pour Python.

LocaTable.glyph_offset(gid) retourne le byte offset des données glyphes pour l’ID glyf donné dans la table glyfe du chiffre.

Cette classe fournit 4 méthodes pour travailler avec les objets LocaTable dans les programmes Python. Les méthodologies disponibles comprennent: from_reader, glyph_length , glyf_offset et 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 : offsets .

Propriétés

NameTypeAccessDescription
offsetslist[int]Read/WriteGets or sets the offsets.

méthodes

SignatureDescription
from_reader(r: BinaryReader, num_glyphs: int, index_to_loc_format: int, table_length: int)"LocaTable"Reads a Loca table from a BinaryReader using glyph count, format and length
to_bytes(index_to_loc_format: int)bytesSerializes the Loca table to bytes according to the given index_to_loc_format
glyph_offset(gid: int)intReturns the byte offset of the glyph data for the given glyph ID within the font’s glyf table
glyph_length(gid: int)intReturns the byte length of the glyph data for the given gid

Voir aussi

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