cheshirekow  v0.1.0
freetype::load_target Namespace Reference

A list of values that are used to select a specific hinting algorithm to use by the hinter. You should OR one of these values to your ‘load_flags’ when calling FT_Load_Glyph. More...

Classes

struct  LoadTarget
 

Variables

const Int32_t LCD = LoadTarget< render_mode::LCD >::value
 A variant of FT_LOAD_TARGET_NORMAL optimized for horizontally decimated LCD displays. More...
 
const Int32_t LCD_V = LoadTarget< render_mode::LCD_V >::value
 A variant of FT_LOAD_TARGET_NORMAL optimized for vertically decimated LCD displays. More...
 
const Int32_t LIGHT = LoadTarget< render_mode::LIGHT >::value
 A lighter hinting algorithm for non-monochrome modes. More...
 
const Int32_t MONO = LoadTarget< render_mode::MONO >::value
 Strong hinting algorithm that should only be used for monochrome output. The result is probably unpleasant if the glyph is rendered in non-monochrome modes. More...
 
const Int32_t NORMAL = LoadTarget< render_mode::NORMAL>::value
 This corresponds to the default hinting algorithm, optimized for standard gray-level rendering. For monochrome output, use FT_LOAD_TARGET_MONO instead. More...
 

Detailed Description

A list of values that are used to select a specific hinting algorithm to use by the hinter. You should OR one of these values to your ‘load_flags’ when calling FT_Load_Glyph.

You should use only one of the FT_LOAD_TARGET_XXX values in your ‘load_flags’. They can't be ORed.

If FT_LOAD_RENDER is also set, the glyph is rendered in the corresponding mode (i.e., the mode which matches the used algorithm best). An exeption is FT_LOAD_TARGET_MONO since it implies FT_LOAD_MONOCHROME.

You can use a hinting algorithm that doesn't correspond to the same rendering mode. As an example, it is possible to use the ‘light’ hinting algorithm and have the results rendered in horizontal LCD pixel mode, with code like

FT_Load_Glyph( face, glyph_index,
load_flags | FT_LOAD_TARGET_LIGHT );
FT_Render_Glyph( face->glyph, FT_RENDER_MODE_LCD );

Variable Documentation

const Int32_t freetype::load_target::LCD = LoadTarget< render_mode::LCD >::value

A variant of FT_LOAD_TARGET_NORMAL optimized for horizontally decimated LCD displays.

Definition at line 668 of file types.h.

const Int32_t freetype::load_target::LCD_V = LoadTarget< render_mode::LCD_V >::value

A variant of FT_LOAD_TARGET_NORMAL optimized for vertically decimated LCD displays.

Definition at line 672 of file types.h.

const Int32_t freetype::load_target::LIGHT = LoadTarget< render_mode::LIGHT >::value

A lighter hinting algorithm for non-monochrome modes.

Many generated glyphs are more fuzzy but better resemble its original shape. A bit like rendering on Mac OS X.

As a special exception, this target implies FT_LOAD_FORCE_AUTOHINT.

Definition at line 659 of file types.h.

const Int32_t freetype::load_target::MONO = LoadTarget< render_mode::MONO >::value

Strong hinting algorithm that should only be used for monochrome output. The result is probably unpleasant if the glyph is rendered in non-monochrome modes.

Definition at line 664 of file types.h.

const Int32_t freetype::load_target::NORMAL = LoadTarget< render_mode::NORMAL>::value

This corresponds to the default hinting algorithm, optimized for standard gray-level rendering. For monochrome output, use FT_LOAD_TARGET_MONO instead.

Definition at line 650 of file types.h.