Output a warning for missing glyphs in a font.

This commit is contained in:
Unknown W. Brackets committed 2013-04-21 10:39:32 -07:00
1 parent 0e96cfaa99
commit 6126faef84
1 file changed
+3
+3
View File
@@ -341,6 +341,9 @@ void RasterizeFont(const char *fontfile, std::vector<CharRange> &ranges, int fon
continue;
}
if (FT_Get_Char_Index(font, kar) == 0)
fprintf(stderr, "WARNING: Font does not contain character %x.\n", kar);
// printf("%dx%d %p\n", font->glyph->bitmap.width, font->glyph->bitmap.rows, font->glyph->bitmap.buffer);
const int bord = (128 + distmult - 1) / distmult + 1;
if(font->glyph->bitmap.buffer) {