Commit 0798f0c3ecfa52322498c58ceeaa4ee0aa0cc3c1

Graham Asher 2003-04-25T11:36:44

If unpatented hinting is compiled the TrueType face object acquires a new element, "FT_Bool unpatented_hinting".

diff --git a/include/freetype/internal/tttypes.h b/include/freetype/internal/tttypes.h
index 4097ac8..0bcd201 100644
--- a/include/freetype/internal/tttypes.h
+++ b/include/freetype/internal/tttypes.h
@@ -1456,6 +1456,9 @@ FT_BEGIN_HEADER
   /*                            interpreters field is also used to hook    */
   /*                            the debugger in `ttdebug'.                 */
   /*                                                                       */
+  /*    unpatented_hinting   :: If true, use only unpatented methods in    */
+  /*                            the bytecode interpreter.                  */
+  /*                                                                       */
   /*    extra                :: Reserved for third-party font drivers.     */
   /*                                                                       */
   typedef struct  TT_FaceRec_
@@ -1559,6 +1562,10 @@ FT_BEGIN_HEADER
     /* used to hook the debugger for the `ttdebug' utility.        */
     TT_Interpreter        interpreter;
 
+#ifdef TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING
+    /* Use unpatented hinting only. */
+	FT_Bool               unpatented_hinting;
+#endif
 
     /***********************************************************************/
     /*                                                                     */