shithub: freetype+ttf2subf

Download patch

ref: 6e0d4cdf0e25d6ac328a51cbd3fa28a14ab05491
parent: 70cf8c5e6d249523ed474e548b4c9e1d226c77df
author: Werner Lemberg <[email protected]>
date: Sun Nov 27 04:21:03 EST 2011

[bdf] Improve tracing.

* src/bdf/bdflib.c (DBGMSG1, DBGMSG2): New macros.
(_bdf_parse_glyphs): Use them.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-11-27  Werner Lemberg  <[email protected]>
+
+	[bdf] Improve tracing.
+
+	* src/bdf/bdflib.c (DBGMSG1, DBGMSG2): New macros.
+	(_bdf_parse_glyphs): Use them.
+
 2011-11-26  Werner Lemberg  <[email protected]>
 
 	Improve tracing.
--- a/src/bdf/bdflib.c
+++ b/src/bdf/bdflib.c
@@ -200,7 +200,11 @@
 #define ERRMSG8  "[line %ld] Invalid `%s' value.\n"
 #define ERRMSG9  "[line %ld] Invalid keyword.\n"
 
+  /* Debug messages. */
+#define DBGMSG1  "  [%6ld] %s" /* no \n */
+#define DBGMSG2  " (0x%lX)\n"
 
+
   /*************************************************************************/
   /*                                                                       */
   /* Hash table utilities for the properties.                              */
@@ -1577,6 +1581,8 @@
 
       p->flags |= _BDF_GLYPH;
 
+      FT_TRACE4(( DBGMSG1, lineno, s ));
+
       goto Exit;
     }
 
@@ -1596,6 +1602,8 @@
         goto Exit;
 
       p->glyph_enc = _bdf_atol( p->list.field[1], 0, 10 );
+
+      FT_TRACE4(( DBGMSG2, p->glyph_enc ));
 
       /* Check that the encoding is in the range [0,65536] because */
       /* otherwise p->have (a bitmap with static size) overflows.  */