diff options
author | Alexei Podtelezhnikov <apodtele@gmail.com> | 2017-03-31 22:41:53 -0400 |
---|---|---|
committer | Alexei Podtelezhnikov <apodtele@gmail.com> | 2017-03-31 22:41:53 -0400 |
commit | 54b58097ee7dd8bf8db5dc0c925ad220e5770f8c (patch) | |
tree | 413f1162bb4bb3592fb9a9cca8a0cbfa736d4a26 /src | |
parent | 5a3490e054bda8a318ebde482c7fb30213cab3d9 (diff) | |
download | freetype2-54b58097ee7dd8bf8db5dc0c925ad220e5770f8c.tar.gz |
[autofit] Disable stem adjustment for `FT_LOAD_TARGET_LCD'.
* include/freetype/freetype.h (FT_LOAD_TARGET_LCD): Document it.
* src/autofit/afcjk.c (af_cjk_hints_init): Updated.
* src/autofit/aflatin.c (af_latin_hints_init): Ditto.
* src/autofit/aflatin2.c (af_latin2_hints_init): Ditto.
Diffstat (limited to 'src')
-rw-r--r-- | src/autofit/afcjk.c | 4 | ||||
-rw-r--r-- | src/autofit/aflatin.c | 4 | ||||
-rw-r--r-- | src/autofit/aflatin2.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/autofit/afcjk.c b/src/autofit/afcjk.c index ec05ee4d9..61e29cded 100644 --- a/src/autofit/afcjk.c +++ b/src/autofit/afcjk.c @@ -1398,9 +1398,9 @@ other_flags |= AF_LATIN_HINTS_VERT_SNAP; /* - * We adjust stems to full pixels only if we don't use the `light' mode. + * We adjust stems to full pixels unless in `light' or `lcd' mode. */ - if ( mode != FT_RENDER_MODE_LIGHT ) + if ( mode != FT_RENDER_MODE_LIGHT && mode != FT_RENDER_MODE_LCD ) other_flags |= AF_LATIN_HINTS_STEM_ADJUST; if ( mode == FT_RENDER_MODE_MONO ) diff --git a/src/autofit/aflatin.c b/src/autofit/aflatin.c index b983460d8..1b07b5b6c 100644 --- a/src/autofit/aflatin.c +++ b/src/autofit/aflatin.c @@ -2575,9 +2575,9 @@ other_flags |= AF_LATIN_HINTS_VERT_SNAP; /* - * We adjust stems to full pixels only if we don't use the `light' mode. + * We adjust stems to full pixels unless in `light' or `lcd' mode. */ - if ( mode != FT_RENDER_MODE_LIGHT ) + if ( mode != FT_RENDER_MODE_LIGHT && mode != FT_RENDER_MODE_LCD ) other_flags |= AF_LATIN_HINTS_STEM_ADJUST; if ( mode == FT_RENDER_MODE_MONO ) diff --git a/src/autofit/aflatin2.c b/src/autofit/aflatin2.c index cc2312648..c215f29a7 100644 --- a/src/autofit/aflatin2.c +++ b/src/autofit/aflatin2.c @@ -1558,9 +1558,9 @@ other_flags |= AF_LATIN_HINTS_VERT_SNAP; /* - * We adjust stems to full pixels only if we don't use the `light' mode. + * We adjust stems to full pixels unless in `light' or `lcd' mode. */ - if ( mode != FT_RENDER_MODE_LIGHT ) + if ( mode != FT_RENDER_MODE_LIGHT && mode != FT_RENDER_MODE_LCD ) other_flags |= AF_LATIN_HINTS_STEM_ADJUST; if ( mode == FT_RENDER_MODE_MONO ) |