[autofit] Disable metrics adjustment for `FT_LOAD_TARGET_LCD'.
* src/autofit/aflatin.c (af_latin_hints_init): Updated. * src/autofit/aflatin2.c (af_latin2_hints_init): Ditto.
This commit is contained in:
parent
bb6c037bae
commit
e7b013044e
@ -1,3 +1,10 @@
|
||||
2017-04-02 Alexei Podtelezhnikov <apodtele@gmail.com>
|
||||
|
||||
[autofit] Disable metrics adjustment for `FT_LOAD_TARGET_LCD'.
|
||||
|
||||
* src/autofit/aflatin.c (af_latin_hints_init): Updated.
|
||||
* src/autofit/aflatin2.c (af_latin2_hints_init): Ditto.
|
||||
|
||||
2017-04-01 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
* src/truetype/ttgload.c: Include FT_CONFIG_CONFIG_H.
|
||||
|
@ -2584,14 +2584,14 @@
|
||||
other_flags |= AF_LATIN_HINTS_MONO;
|
||||
|
||||
/*
|
||||
* In `light' hinting mode we disable horizontal hinting completely.
|
||||
* In `light' or `lcd' mode we disable horizontal hinting completely.
|
||||
* We also do it if the face is italic.
|
||||
*
|
||||
* However, if warping is enabled (which only works in `light' hinting
|
||||
* mode), advance widths get adjusted, too.
|
||||
*/
|
||||
if ( mode == FT_RENDER_MODE_LIGHT ||
|
||||
( face->style_flags & FT_STYLE_FLAG_ITALIC ) != 0 )
|
||||
if ( mode == FT_RENDER_MODE_LIGHT || mode == FT_RENDER_MODE_LCD ||
|
||||
( face->style_flags & FT_STYLE_FLAG_ITALIC ) != 0 )
|
||||
scaler_flags |= AF_SCALER_FLAG_NO_HORIZONTAL;
|
||||
|
||||
#ifdef AF_CONFIG_OPTION_USE_WARPER
|
||||
|
@ -1567,11 +1567,11 @@
|
||||
other_flags |= AF_LATIN_HINTS_MONO;
|
||||
|
||||
/*
|
||||
* In `light' hinting mode we disable horizontal hinting completely.
|
||||
* In `light' or `lcd' mode we disable horizontal hinting completely.
|
||||
* We also do it if the face is italic.
|
||||
*/
|
||||
if ( mode == FT_RENDER_MODE_LIGHT ||
|
||||
( face->style_flags & FT_STYLE_FLAG_ITALIC ) != 0 )
|
||||
if ( mode == FT_RENDER_MODE_LIGHT || mode == FT_RENDER_MODE_LCD ||
|
||||
( face->style_flags & FT_STYLE_FLAG_ITALIC ) != 0 )
|
||||
scaler_flags |= AF_SCALER_FLAG_NO_HORIZONTAL;
|
||||
|
||||
#ifdef AF_CONFIG_OPTION_USE_WARPER
|
||||
|
Loading…
Reference in New Issue
Block a user