Improve documentation of FT_LOAD_NO_SCALE.

This commit is contained in:
Werner Lemberg 2012-07-10 08:33:50 +02:00
parent 26472b4f16
commit fff6dcf1fe
1 changed files with 9 additions and 3 deletions

View File

@ -2413,14 +2413,20 @@ FT_BEGIN_HEADER
* behaviour to more specific and useful cases. * behaviour to more specific and useful cases.
* *
* FT_LOAD_NO_SCALE :: * FT_LOAD_NO_SCALE ::
* Don't scale the outline glyph loaded, but keep it in font units. * Don't scale the loaded outline glyph but keep it in font units.
* *
* This flag implies @FT_LOAD_NO_HINTING and @FT_LOAD_NO_BITMAP, and * This flag implies @FT_LOAD_NO_HINTING and @FT_LOAD_NO_BITMAP, and
* unsets @FT_LOAD_RENDER. * unsets @FT_LOAD_RENDER.
* *
* If the font is `tricky' (see @FT_FACE_FLAG_TRICKY for more), using
* FT_LOAD_NO_SCALE usually yields meaningless outlines because the
* subglyphs must be scaled and positioned with hinting instructions.
* This can be solved by loading the font without FT_LOAD_NO_SCALE and
* setting the character size to `font->units_per_EM'.
*
* FT_LOAD_NO_HINTING :: * FT_LOAD_NO_HINTING ::
* Disable hinting. This generally generates `blurrier' bitmap glyph * Disable hinting. This generally generates `blurrier' bitmap glyphs
* when the glyph is rendered in any of the anti-aliased modes. See * when the glyph are rendered in any of the anti-aliased modes. See
* also the note below. * also the note below.
* *
* This flag is implied by @FT_LOAD_NO_SCALE. * This flag is implied by @FT_LOAD_NO_SCALE.