shithub: freetype+ttf2subf

Download patch

ref: 0798f0c3ecfa52322498c58ceeaa4ee0aa0cc3c1
parent: 33671d74a2252bf8953f1ce83d7ac713e886018f
author: Graham Asher <[email protected]>
date: Fri Apr 25 07:36:44 EDT 2003

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

git/fs: mount .git/fs: mount/attach disallowed
--- a/include/freetype/internal/tttypes.h
+++ b/include/freetype/internal/tttypes.h
@@ -1456,6 +1456,9 @@
   /*                            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 @@
     /* 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
 
     /***********************************************************************/
     /*                                                                     */