From: Steinar H. Gunderson Date: Sun, 19 Feb 2012 21:21:25 +0000 (+0100) Subject: Fix anther font fallback bug. X-Git-Url: https://git.sesse.net/?p=ccbs;a=commitdiff_plain;h=24f41f070f831124d49a371829c44183dcbc6812 Fix anther font fallback bug. --- diff --git a/bigscreen/fonts.cpp b/bigscreen/fonts.cpp index 4b0f3c8..cac42d6 100644 --- a/bigscreen/fonts.cpp +++ b/bigscreen/fonts.cpp @@ -62,6 +62,7 @@ void init_freetype() void get_glyph(const std::vector &fonts, wchar_t ch, FT_Face *face, int *glyph_index) { + *glyph_index = 0; for (std::vector::const_iterator i = fonts.begin(); i != fonts.end(); ++i) { *glyph_index = FT_Get_Char_Index(*i, ch); if (*glyph_index == 0)