freetypy.Face.get_glyph_name¶
-
Face.
get_glyph_name
()¶ Retrieve the ASCII name of the given glyph in a face. This only works for those faces where
has_ps_glyph_names
returnsTrue
.Parameters: glyph_index : int
The glyph index.
Returns: glyph_name : str
The glyph name.
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’).