freetypy.SfntNames.get_name

SfntNames.get_name()

⨎ Get the best available SFNT name of a given type.

This searches the SFNT names to first find a Unicode version of the name, if available, otherwise returning the first found name of the given type. Raises KeyError if no name of the given type was found.

Parameters:name (int) – A TT_NAME_ID constant indicating the type of SFNT name to return.
Returns:sfnt_name
Return type:SfntName object