freetypy.Face.load_char

Face.load_char()

Load a single glyph, according to its char code.

Parameters:
  • char_code (int) – The glyph’s char code, according to the current charmap used in the face.
  • 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.