X-Git-Url: https://git.sesse.net/?p=ccbs;a=blobdiff_plain;f=bigscreen%2Ffonts.cpp;fp=bigscreen%2Ffonts.cpp;h=cac42d6806035bb91eaccde81388de3bfce02a09;hp=4b0f3c85541de609f435f7243a740413cb25b49b;hb=24f41f070f831124d49a371829c44183dcbc6812;hpb=7b8b747f037d2244ffd080e97d9d5e5c0e9114a7 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)