GlyphAccessor
Vue de l’ensemble
‘GlyphAccessor’ est une classe dans Aspose.Font FOSS pour Python.Déduit de: ABC.
Retriever les glyphes par ID ou Unicode codepoint.
Cette classe fournit 5 méthodes pour travailler avec les objets GlyphAccessor dans les programmes Python. Les méthodologies disponibles comprennent: __init__, get_all_glyf_ids , get_Glyp_by_id,, ‘get _gryp _by _unicodeetgat_glyphs_for_text`. 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 |
|---|---|
__init__(encoding: FontEncoding) | Calls init on this GlyphAccessor instance. |
get_glyph_by_id(gid: GlyphId) → Glyph | Retrieves the Glyph object that matches the supplied GlyphId |
get_glyph_by_unicode(codepoint: int) → Glyph | Returns a Glyph object containing glyph_id, glyph_name, path, advance_width, and lsb for the given Unicode codepoint |
get_glyphs_for_text(text: str) → list[Glyph] | Returns a list of Glyph objects representing each character in the provided text |
get_all_glyph_ids() → list[GlyphId] | Returns the all glyph ids. |
Voir aussi
- Aspose.Font — référence API d’entreprise