CffEncoding
Vue de l’ensemble
‘CffEncoding’ est une classe dans Aspose.Font FOSS pour Python.Déduit de: ‘FonEncode’.
CffEncoding.unicode_to_gid(codepoint) retourne le GlyphId pour un code-point Unicodes selon la codage actuelle de CFF.
Cette classe fournit 5 méthodes pour travailler avec CffEncoding objets dans les programmes Python. Les méthodologies disponibles comprennent: ’expert’, ‘from_reader’, `get_all_codepoints’, ‘standard’, ‘unicode_to_gid’. Tous les membres publics sont accessibles à n’importe quelle application Pythone après l’installation de l’Aspose.Font FOSS pour le package PyThone.
méthodes
| Signature | Description |
|---|---|
from_reader(r: BinaryReader, num_glyphs: int, charset: CffCharset, string_index: CffIndex) → "CffEncoding" | Creates an encoding by reading from a BinaryReader using the given glyph count, charset, and string index |
standard(charset: CffCharset) → "CffEncoding" | Returns a standard CFF encoding configured for the supplied charset |
expert(charset: CffCharset) → "CffEncoding" | Returns an expert CFF encoding configured for the supplied charset |
unicode_to_gid(codepoint: int) → GlyphId | Returns the GlyphId for a Unicode codepoint according to the current CFF encoding |
get_all_codepoints() → list[int] | Returns the all codepoints. |
Voir aussi
- Aspose.Font — référence API d’entreprise