shithub: freetype+ttf2subf

Download patch

ref: 75722f89290eb1cb316cd240763545d7277e0481
parent: ccd3188af18fc0e96a105ec68483e815209b9981
author: Werner Lemberg <[email protected]>
date: Wed Nov 11 04:55:16 EST 2015

[cff, autofit] Switch off stem darkening by default.

* src/autofit/afmodule.c (af_autofitter_init), src/cff/cffobjs.c
(cff_driver_init): Do it.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2015-11-11  Werner Lemberg  <[email protected]>
+
+	[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)  <[email protected]>
 
 	Allow native CFF hinter in FT_RENDER_MODE_LIGHT.
--- 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;
--- 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;