forked from minhngoc25a/freetype2
[bdf] Improve tracing.
* src/bdf/bdflib.c (DBGMSG1, DBGMSG2): New macros. (_bdf_parse_glyphs): Use them.
This commit is contained in:
parent
70cf8c5e6d
commit
6e0d4cdf0e
|
@ -1,3 +1,10 @@
|
|||
2011-11-27 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
[bdf] Improve tracing.
|
||||
|
||||
* src/bdf/bdflib.c (DBGMSG1, DBGMSG2): New macros.
|
||||
(_bdf_parse_glyphs): Use them.
|
||||
|
||||
2011-11-26 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
Improve tracing.
|
||||
|
|
|
@ -200,6 +200,10 @@
|
|||
#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"
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
|
@ -1577,6 +1581,8 @@
|
|||
|
||||
p->flags |= _BDF_GLYPH;
|
||||
|
||||
FT_TRACE4(( DBGMSG1, lineno, s ));
|
||||
|
||||
goto Exit;
|
||||
}
|
||||
|
||||
|
@ -1597,6 +1603,8 @@
|
|||
|
||||
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. */
|
||||
if ( p->glyph_enc > 0 &&
|
||||
|
|
Loading…
Reference in New Issue