TopDict

Vue de l’ensemble

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

TopDict.from_dict(d, string_index) crée une instance de TopSict à partir d’une représentation dictionnaire et d’un tableau d`indices de la ligne, permettant la reconstruction programmatique des métadonnées de haut niveau du texte.

Cette classe fournit 2 méthodes pour travailler avec les objets TopDict dans les programmes Python. Les méthodologies disponibles comprennent: from_dict, get_sid. 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: ‘charset_offset’, ‘charstring_type’, charstings_Offset , ’encoding-offseat` et 10 autres.

Propriétés

NameTypeAccessDescription
full_namestrRead/WriteGets or sets the full name.
family_namestrRead/WriteGets or sets the family name.
weightstrRead/WriteGets or sets the weight.
versionstrRead/WriteGets or sets the version.
font_bboxtuple[int, int, int, int]Read/WriteGets or sets the font bbox.
charstring_typeintRead/WriteGets or sets the charstring type.
italic_anglefloatRead/WriteGets or sets the italic angle.
is_fixed_pitchboolRead/WriteGets or sets the is fixed pitch.
underline_positionintRead/WriteGets or sets the underline position.
underline_thicknessintRead/WriteGets or sets the underline thickness.
font_matrixtuple[float, float, float, float, float, float]Read/WriteGets or sets the font matrix.
charset_offsetintRead/WriteGets or sets the charset offset.
encoding_offsetintRead/WriteGets or sets the encoding offset.
charstrings_offsetintRead/WriteGets or sets the charstrings offset.
private_sizeintRead/WriteGets or sets the private size.
private_offsetintRead/WriteGets or sets the private offset.

méthodes

SignatureDescription
from_dict(d: CffDict, string_index: CffIndex)"TopDict"Creates a TopDict instance from a dictionary representation and a string‑index table, allowing programmatic reconstruction of font top‑level metadata
get_sid(op: int)strReturns the string name associated with a given operator code

Voir aussi

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