shithub: freetype+ttf2subf

Download patch

ref: 14df6b1a63f5c5773bb498063205cb79aac21173
parent: d164f70df861dcff3495cef61c60c2ed9def060d
author: Werner Lemberg <[email protected]>
date: Wed Apr 22 07:14:35 EDT 2015

[autofit] By default, enable warping code but switch off warping.

Suggested by Behdad.

* include/config/ftoption.h: Define AF_CONFIG_OPTION_USE_WARPER.

* src/autofit/afmodule.c (af_autofitter_init): Initialize `warping'
with `false'.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,16 @@
 2015-04-21  Werner Lemberg  <[email protected]>
 
+	[autofit] By default, enable warping code but switch off warping.
+
+	Suggested by Behdad.
+
+	* include/config/ftoption.h: Define AF_CONFIG_OPTION_USE_WARPER.
+
+	* src/autofit/afmodule.c (af_autofitter_init): Initialize `warping'
+	with `false'.
+
+2015-04-21  Werner Lemberg  <[email protected]>
+
 	* docs/CHANGES: Updated.
 
 2015-04-21  Werner Lemberg  <[email protected]>
--- a/devel/ftoption.h
+++ b/devel/ftoption.h
@@ -823,7 +823,7 @@
   /* This experimental option is active only if the rendering mode is      */
   /* FT_RENDER_MODE_LIGHT; you can switch warping on and off with the      */
   /* `warping' property of the auto-hinter (see file `ftautoh.h' for more  */
-  /* information).                                                         */
+  /* information; by default it is switched off).                          */
   /*                                                                       */
 #define AF_CONFIG_OPTION_USE_WARPER
 
--- a/docs/CHANGES
+++ b/docs/CHANGES
@@ -34,7 +34,9 @@
 
     - A new auto-hinter  property `warping' can switch on  and off the
       warping code  if this  experimental feature  is compiled  in (by
-      defining the AF_CONFIG_OPTION_USE_WARPER configuration option).
+      defining the  AF_CONFIG_OPTION_USE_WARPER  configuration option;
+      by default  this option is  now enabled but  warping is switched
+      off).
 
       The AF_CONFIG_OPTION_USE_WARPER option itself is an old feature,
       available   since  2006.    Warping   only   works  in   `light'
--- a/include/config/ftoption.h
+++ b/include/config/ftoption.h
@@ -823,9 +823,9 @@
   /* This experimental option is active only if the rendering mode is      */
   /* FT_RENDER_MODE_LIGHT; you can switch warping on and off with the      */
   /* `warping' property of the auto-hinter (see file `ftautoh.h' for more  */
-  /* information).                                                         */
+  /* information; by default it is switched off).                          */
   /*                                                                       */
-/* #define AF_CONFIG_OPTION_USE_WARPER */
+#define AF_CONFIG_OPTION_USE_WARPER
 
   /* */
 
--- a/include/ftautoh.h
+++ b/include/ftautoh.h
@@ -411,12 +411,12 @@
    *   glyph's optimal scaling and shifting value, various parameter
    *   combinations are tried and scored.
    *
-   *   By default, warping is on.  The example below shows how to switch off
+   *   By default, warping is off.  The example below shows how to switch on
    *   warping (omitting the error handling).
    *
    *   {
    *     FT_Library  library;
-   *     FT_Bool     warping = 0;
+   *     FT_Bool     warping = 1;
    *
    *
    *     FT_Init_FreeType( &library );
--- a/src/autofit/afmodule.c
+++ b/src/autofit/afmodule.c
@@ -281,7 +281,7 @@
     module->fallback_style = AF_STYLE_FALLBACK;
     module->default_script = AF_SCRIPT_DEFAULT;
 #ifdef AF_CONFIG_OPTION_USE_WARPER
-    module->warping        = 1;
+    module->warping        = 0;
 #endif
 
     return FT_Err_Ok;