freetypy.Face.get_name_index

Face.get_name_index()

Return the glyph index of a given glyph name. This function uses driver specific objects to do the translation.

Parameters:

glyph_name : str

The glyph name.

Returns:

glyph_index : int

The glyph index. 0 means ‘undefined character code’.