From: Grigori Goronzy Date: Sat, 16 Jul 2011 01:13:26 +0000 (+0200) Subject: Set requested font face correctly X-Git-Tag: 0.10.0~33 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c3167c0876ba3f727075a5c44797780a0a334477;p=libass Set requested font face correctly --- diff --git a/libass/ass_font.c b/libass/ass_font.c index d65b976..21ad297 100644 --- a/libass/ass_font.c +++ b/libass/ass_font.c @@ -446,7 +446,7 @@ int ass_font_get_index(void *fcpriv, ASS_Font *font, uint32_t symbol, // try with the requested face if (*face_index < font->n_faces) { - face = font->faces[i]; + face = font->faces[*face_index]; index = FT_Get_Char_Index(face, symbol); }