freetypy.Face.get_name_index

Face.get_name_index()

Get 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 – The glyph index. 0 means ‘undefined char code’.
Return type:int