]> git.sesse.net Git - ccbs/commitdiff
Fix anther font fallback bug.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 19 Feb 2012 21:21:25 +0000 (22:21 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 19 Feb 2012 21:21:25 +0000 (22:21 +0100)
bigscreen/fonts.cpp

index 4b0f3c85541de609f435f7243a740413cb25b49b..cac42d6806035bb91eaccde81388de3bfce02a09 100644 (file)
@@ -62,6 +62,7 @@ void init_freetype()
 
 void get_glyph(const std::vector<FT_Face> &fonts, wchar_t ch, FT_Face *face, int *glyph_index)
 {
+       *glyph_index = 0;
        for (std::vector<FT_Face>::const_iterator i = fonts.begin(); i != fonts.end(); ++i) {
                *glyph_index = FT_Get_Char_Index(*i, ch);
                if (*glyph_index == 0)