]> granicus.if.org Git - libass/commitdiff
Set requested font face correctly
authorGrigori Goronzy <greg@blackbox>
Sat, 16 Jul 2011 01:13:26 +0000 (03:13 +0200)
committerGrigori Goronzy <greg@blackbox>
Sat, 16 Jul 2011 01:13:26 +0000 (03:13 +0200)
libass/ass_font.c

index d65b9763279ed04c36a0f03ac6d8e1e330633479..21ad297d41ae0b6e509296b7756f9a197613e5b1 100644 (file)
@@ -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);
     }