freetypy.CharMap¶
-
class
freetypy.CharMap¶ A mapping from code points to glyph identifiers. Some font formats may provide several
CharMapinstances per font.Each face object owns zero or more charmaps, but only one of them can be ‘active’ and used by
Face.get_char_indexorFace.load_char.The list of available charmaps in a face is available through
Face.charmaps.The currently active charmap is available as
Face.charmap.Attributes
encodingAn ENCODINGtag identifying the charmap.encoding_idA platform-specific encoding number. faceThe parent Faceobject.platform_idAn TT_PLATFORMid describing the platform for the following encoding ID.Methods
get_formatReturn TrueType/sfnt specific cmap format. get_language_idReturn TrueType/sfnt specific cmap language ID.