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
| Name | Type | Access | Description |
|---|---|---|---|
full_name | str | Read/Write | Gets or sets the full name. |
family_name | str | Read/Write | Gets or sets the family name. |
weight | str | Read/Write | Gets or sets the weight. |
version | str | Read/Write | Gets or sets the version. |
font_bbox | tuple[int, int, int, int] | Read/Write | Gets or sets the font bbox. |
charstring_type | int | Read/Write | Gets or sets the charstring type. |
italic_angle | float | Read/Write | Gets or sets the italic angle. |
is_fixed_pitch | bool | Read/Write | Gets or sets the is fixed pitch. |
underline_position | int | Read/Write | Gets or sets the underline position. |
underline_thickness | int | Read/Write | Gets or sets the underline thickness. |
font_matrix | tuple[float, float, float, float, float, float] | Read/Write | Gets or sets the font matrix. |
charset_offset | int | Read/Write | Gets or sets the charset offset. |
encoding_offset | int | Read/Write | Gets or sets the encoding offset. |
charstrings_offset | int | Read/Write | Gets or sets the charstrings offset. |
private_size | int | Read/Write | Gets or sets the private size. |
private_offset | int | Read/Write | Gets or sets the private offset. |
méthodes
| Signature | Description |
|---|---|
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) → str | Returns the string name associated with a given operator code |
Voir aussi
- Aspose.Font — référence API d’entreprise