freetypy.CharMap.get_language_id

CharMap.get_language_id()

Get the TrueType/sfnt specific cmap language ID.

It will be one of the constants in TT_MAC_LANGID or TT_MS_LANGID.

Returns:language_id – The language ID of the CharMap. If it doesn’t belong to a TrueType/sfnt face, raises a ValueError.

For a format 14 cmap (to access Unicode IVS), the return value is 0xFFFFFFFF.

Return type:int