From 24f41f070f831124d49a371829c44183dcbc6812 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 19 Feb 2012 22:21:25 +0100 Subject: [PATCH] Fix anther font fallback bug. --- bigscreen/fonts.cpp | 1 + 1 file changed, 1 insertion(+) 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) -- 2.39.2