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)