freetypy.GLYPH_FORMAT

class freetypy.GLYPH_FORMAT

An enumeration type used to describe the format of a given glyph image. Note that this version of FreeType only supports two image formats, even though future font drivers will be able to register their own format.

  • NONE: The value 0 is reserved.
  • COMPOSITE: The glyph image is a composite of several other images. This format is only used with LOAD.NO_RECURSE, and is used to report compound glyphs (like accented characters).
  • BITMAP: The glyph image is a bitmap, and can be described as an Bitmap.
  • OUTLINE: The glyph image is a vectorial outline made of line segments and Bézier arcs; it can be described as an Outline.
  • PLOTTER: The glyph image is a vectorial path with no inside and outside contours. Some Type 1 fonts, like those in the Hershey family, contain glyphs in this format. These are described as Outline, but FreeType isn’t currently capable of rendering them correctly.

Attributes

BITMAP
COMPOSITE
NONE
OUTLINE
PLOTTER