freetypy.RENDER_MODE

class freetypy.RENDER_MODE

Selects a Bitmap renderer.

  • NORMAL: This is the default render mode; it corresponds to 8-bit anti-aliased bitmaps.
  • LIGHT: This is equivalent to RENDER_MODE.NORMAL. It is only defined as a separate value because render modes are also used indirectly to define hinting algorithm selectors. See LOAD.TARGET_XXX for details.
  • MONO: This mode corresponds to 1-bit bitmaps (with 2 levels of opacity).
  • LCD: This mode corresponds to horizontal RGB and BGR sub-pixel displays like LCD screens. It produces 8-bit bitmaps that are 3 times the width of the original glyph outline in pixels, and which use the PIXEL_MODE.LCD mode. On many freetype builds, this functionality will be disabled due to patent restrictions, in which case the resulting bitmap will be grayscale.
  • LCD_V: This mode corresponds to vertical RGB and BGR sub-pixel displays (like PDA screens, rotated LCD displays, etc.). It produces 8-bit bitmaps that are 3 times the height of the original glyph outline in pixels and use the PIXEL_MODE.LCD_V mode. On many freetype builds, this functionality will be disabled due to patent restrictions, in which case the resulting bitmap will be grayscale.
__init__()

x.__init__(...) initializes x; see help(type(x)) for signature

Attributes

LCD
LCD_V
LIGHT
MONO
NORMAL