[cff, autofit] Switch off stem darkening by default. * src/autofit/afmodule.c (af_autofitter_init), src/cff/cffobjs.c (cff_driver_init): Do it.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
diff --git a/ChangeLog b/ChangeLog
index b348dbb..4442f39 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2015-11-11 Werner Lemberg <wl@gnu.org>
+
+ [cff, autofit] Switch off stem darkening by default.
+
+ * src/autofit/afmodule.c (af_autofitter_init), src/cff/cffobjs.c
+ (cff_driver_init): Do it.
+
2015-11-10 Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
Allow native CFF hinter in FT_RENDER_MODE_LIGHT.
diff --git a/src/autofit/afmodule.c b/src/autofit/afmodule.c
index 6bb8193..45fd360 100644
--- a/src/autofit/afmodule.c
+++ b/src/autofit/afmodule.c
@@ -371,7 +371,7 @@
#ifdef AF_CONFIG_OPTION_USE_WARPER
module->warping = 0;
#endif
- module->no_stem_darkening = FALSE;
+ module->no_stem_darkening = TRUE;
module->darken_params[0] = CFF_CONFIG_OPTION_DARKENING_PARAMETER_X1;
module->darken_params[1] = CFF_CONFIG_OPTION_DARKENING_PARAMETER_Y1;
diff --git a/src/cff/cffobjs.c b/src/cff/cffobjs.c
index 0e0d5b0..d628b68 100644
--- a/src/cff/cffobjs.c
+++ b/src/cff/cffobjs.c
@@ -1052,7 +1052,7 @@
driver->hinting_engine = FT_CFF_HINTING_ADOBE;
#endif
- driver->no_stem_darkening = FALSE;
+ driver->no_stem_darkening = TRUE;
driver->darken_params[0] = CFF_CONFIG_OPTION_DARKENING_PARAMETER_X1;
driver->darken_params[1] = CFF_CONFIG_OPTION_DARKENING_PARAMETER_Y1;