From 82d6286657dc12ce42a9c67cae1546543e44f89e Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 4 Aug 2017 15:03:57 +0100 Subject: [PATCH] Remove check that cannot fail --- src/fcfreetype.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/fcfreetype.c b/src/fcfreetype.c index 6fd7285..6224ca6 100644 --- a/src/fcfreetype.c +++ b/src/fcfreetype.c @@ -2409,24 +2409,6 @@ 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 = 0x0020; ucs4 <= font_max; ucs4++) - { - FcBool has_char = (glyph = FcFreeTypeCharIndex (face, ucs4)) != 0; - FcBool has_bit = FcCharSetHasChar (fcs, ucs4); - - if (has_char && !has_bit) - { - if (!FcFreeTypeCheckGlyph (face, ucs4, glyph, &advance)) - printf ("Bitmap missing broken char 0x%x\n", ucs4); - else - printf ("Bitmap missing char 0x%x\n", ucs4); - } - else if (!has_char && has_bit) - printf ("Bitmap extra char 0x%x\n", ucs4); - } #endif if (fixed_advance) *spacing = FC_MONO;