shithub: freetype+ttf2subf

Download patch

ref: c40a7e2d50fa71ca337fba3b58f424b67550e689
parent: 8772845cdb3321b17cc383152337c1b047aca30b
author: David Turner <[email protected]>
date: Wed Dec 19 14:17:35 EST 2001

* include/freetype/cache/ftcache.h: added comments to indicate that
        some of the exported functions should only be used by applications
        that need to implement custom cache types

        * src/truetype/ttgload.c: fixed a nasty bug that prevent composites
        from loading correctly. Believe it or not, this was due to an invalid
        macro definition !!

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2001-12-19  David Turner  <[email protected]>
 
+        * include/freetype/cache/ftcache.h: added comments to indicate that
+        some of the exported functions should only be used by applications
+        that need to implement custom cache types
+
+        * src/truetype/ttgload.c: fixed a nasty bug that prevent composites
+        from loading correctly. Believe it or not, this was due to an invalid
+        macro definition !!
+
         * src/sfnt/sfobjs.c (SFNT_Load_Face): make the "post" and "name"
         tables optional to load PCL fonts properly
 
--- a/include/freetype/cache/ftccache.h
+++ b/include/freetype/cache/ftccache.h
@@ -54,6 +54,13 @@
 #define  FTC_NODE(x)    ((FTC_Node)(x))
 #define  FTC_NODE_P(x)  ((FTC_Node*)(x))
 
+  /*************************************************************************/
+  /*                                                                       */
+  /* These functions are exported so that they can be called from          */
+  /* user-provided cache classes; otherwise, they are really part of the   */
+  /* cache sub-system internals.                                           */
+  /*                                                                       */
+
   /* can be used as a FTC_Node_DoneFunc */
   FT_EXPORT( void )
   ftc_node_done( FTC_Node   node,
@@ -113,6 +120,13 @@
 #define  FTC_FAMILY_P(x)  ((FTC_Family*)(x))
 
 
+  /*************************************************************************/
+  /*                                                                       */
+  /* These functions are exported so that they can be called from          */
+  /* user-provided cache classes; otherwise, they are really part of the   */
+  /* cache sub-system internals.                                           */
+  /*                                                                       */
+
  /* must be called by any FTC_Node_InitFunc routine */
   FT_EXPORT(FT_Error)
   ftc_family_init( FTC_Family  family,
@@ -218,6 +232,13 @@
   } FTC_Cache_ClassRec;
 
   /* */
+
+  /*************************************************************************/
+  /*                                                                       */
+  /* These functions are exported so that they can be called from          */
+  /* user-provided cache classes; otherwise, they are really part of the   */
+  /* cache sub-system internals.                                           */
+  /*                                                                       */
 
   /* can be used directly as FTC_Cache_DoneFunc(), or called by custom */
   /* cache finalizers                                                  */
--- a/include/freetype/config/ftoption.h
+++ b/include/freetype/config/ftoption.h
@@ -375,7 +375,7 @@
   /* By undefining this, you will only compile the code necessary to load  */
   /* TrueType glyphs without hinting.                                      */
   /*                                                                       */
-#undef TT_CONFIG_OPTION_BYTECODE_INTERPRETER
+#define TT_CONFIG_OPTION_BYTECODE_INTERPRETER
 
 
   /*************************************************************************/
--- a/src/truetype/ttgload.c
+++ b/src/truetype/ttgload.c
@@ -145,10 +145,10 @@
 
 
 #define cur_to_org( n, zone ) \
-          MEM_Copy( (zone)->org, (zone)->cur, n * sizeof ( FT_Vector ) )
+          MEM_Copy( (zone)->org, (zone)->cur, (n) * sizeof ( FT_Vector ) )
 
 #define org_to_cur( n, zone ) \
-          MEM_Copy( (zone)->cur, (zone)->org, n * sizeof ( FT_Vector ) )
+          MEM_Copy( (zone)->cur, (zone)->org, (n) * sizeof ( FT_Vector ) )
 
 
   /*************************************************************************/