From 5f6c0594f97f53e9b0be8341c790bd97023ef443 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 4 Aug 2017 14:57:03 +0100 Subject: [PATCH] Minor: adjust debug output Ignore control chars for purpose of emptiness check. I *think* U+0000 and U+000D are rendered empty, but since they are not in blanks, for now just ignore them. --- src/fcfreetype.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fcfreetype.c b/src/fcfreetype.c index a3bdf85..f0a2368 100644 --- a/src/fcfreetype.c +++ b/src/fcfreetype.c @@ -2349,7 +2349,7 @@ FcFreeTypeCharSetAndSpacing (FT_Face face, FcBlanks *blanks, int *spacing) } } #ifdef CHECK - for (ucs4 = 0; ucs4 < 0x10000; ucs4++) + for (ucs4 = 0x0020; ucs4 < 0x10000; ucs4++) { FcBool FT_Has, FC_Has; @@ -2415,7 +2415,7 @@ FcFreeTypeCharSetAndSpacing (FT_Face face, FcBlanks *blanks, int *spacing) #endif #ifdef CHECK printf ("%d glyphs %d encoded\n", (int) face->num_glyphs, FcCharSetCount (fcs)); - for (ucs4 = 0; ucs4 <= font_max; ucs4++) + for (ucs4 = 0x0020; ucs4 <= font_max; ucs4++) { FcBool has_char = (glyph = FcFreeTypeCharIndex (face, ucs4)) != 0; FcBool has_bit = FcCharSetHasChar (fcs, ucs4);