Remove check that cannot fail

This commit is contained in:
Behdad Esfahbod 2017-08-04 15:03:57 +01:00
parent f309819d77
commit 82d6286657
1 changed files with 0 additions and 18 deletions

View File

@ -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 #endif
if (fixed_advance) if (fixed_advance)
*spacing = FC_MONO; *spacing = FC_MONO;