freetypy.Face.load_char_unicode

Face.load_char_unicode()

⨎ Load a single glyph, from a given unicode character.

Unlike load_char, if the selected CharMap is not Unicode, the given unicode character will first be encoded to the correct character map, if possible.

⨎ This is a freetypy-specific function.

Parameters:
  • char_code (unicode character (1-element unicode string) or int) – The unicode character.
  • load_flags (int, optional) – A flag indicating what to load for this glyph. The LOAD constants can be used to control the glyph loading process (e.g., whether the outline should be scaled, whether to load bitmaps or not, whether to hint the outline, etc).
Returns:

glyph – The loaded Glyph.

Return type:

Glyph

Notes

See load_glyph for more information.