freetypy.Face.get_glyph_name

Face.get_glyph_name()

Get the ASCII name of the given glyph in a face.

This only works for those faces where has_ps_glyph_names returns True.

Parameters:glyph_index (int) – The glyph index.
Returns:glyph_name – The glyph name.
Return type:str

Notes

An exception is raised if the face doesn’t provide glyph names or if the glyph index is invalid.

Be aware that FreeType reorders glyph indices internally so that glyph index 0 always corresponds to the ‘missing glyph’ (called ‘.notdef’).