shithub: freetype+ttf2subf

Download patch

ref: 33671d74a2252bf8953f1ce83d7ac713e886018f
parent: e32c22371d15d23b8b19e9c285ab41b44ccf0bdc
author: Graham Asher <[email protected]>
date: Fri Apr 25 07:34:18 EDT 2003

Added configuration macros (not defined, but in comments) for the
unpatented hinting system.

git/fs: mount .git/fs: mount/attach disallowed
--- a/include/freetype/config/ftoption.h
+++ b/include/freetype/config/ftoption.h
@@ -391,6 +391,30 @@
 
   /*************************************************************************/
   /*                                                                       */
+  /* Define TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING to compile the     */
+  /* unpatented work-around hinting system. You must define this if you    */
+  /* want either to force the use of the unpatented hinting system by also */
+  /* defining TT_CONFIG_OPTION_FORCE_UNPATENTED_HINTING, or if you want to */
+  /* select it at run time using the FT_PARAM_TAG_UNPATENTED_HINTING tag.  */
+  /*                                                                       */
+/* #define TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING */
+
+
+  /*************************************************************************/
+  /*                                                                       */
+  /* Define TT_CONFIG_OPTION_FORCE_UNPATENTED_HINTING to restrict the      */
+  /* TrueType bytecode interpreter to actions not protected by patents.    */
+  /* This enables some fonts, for example mingliu.ttc from Dynalab, to     */
+  /* work properly. They use hinting to make large changes to the glyph    */
+  /* shape, without which the glyph is unrecognisable.                     */
+  /* For this to work you must also define                                 */
+  /* TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING.                          */
+  /*                                                                       */
+/* #define TT_CONFIG_OPTION_FORCE_UNPATENTED_HINTING */
+
+
+  /*************************************************************************/
+  /*                                                                       */
   /* Define TT_CONFIG_OPTION_INTERPRETER_SWITCH to compile the TrueType    */
   /* bytecode interpreter with a huge switch statement, rather than a call */
   /* table.  This results in smaller and faster code for a number of       */