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
orFace.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
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.Methods
get_format
Return TrueType/sfnt specific cmap format. get_language_id
Return TrueType/sfnt specific cmap language ID.