freetypy.CharMap

class freetypy.CharMap

A mapping from code points to glyph identifiers.

Some font formats may provide several CharMap instances per font.

Each face object owns zero or more charmaps, but only one of them can be ‘active’ and used by Face.get_char_index or Face.load_char.

The list of available charmaps in a face is available through Face.charmaps.

The currently active charmap is available as Face.charmap.

__init__()

x.__init__(...) initializes x; see help(type(x)) for signature

Methods

get_format Get the TrueType/sfnt specific cmap format.
get_language_id Get the TrueType/sfnt specific cmap language ID.

Attributes

encoding An ENCODING tag identifying the charmap.
encoding_id A platform-specific encoding number.
face The parent Face object.
platform_id An TT_PLATFORM id describing the platform for the following encoding ID.