From 6126faef84b9fa79c6f401199facc68768894e7a Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 21 Apr 2013 10:39:32 -0700 Subject: [PATCH] Output a warning for missing glyphs in a font. --- tools/atlastool.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/atlastool.cpp b/tools/atlastool.cpp index c6ecea034b..2bc89b6566 100644 --- a/tools/atlastool.cpp +++ b/tools/atlastool.cpp @@ -341,6 +341,9 @@ void RasterizeFont(const char *fontfile, std::vector &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) {