]> granicus.if.org Git - libass/commitdiff
fontselect: fix fallbacks
authorwm4 <wm4@nowhere>
Fri, 28 Aug 2015 14:29:06 +0000 (16:29 +0200)
committerwm4 <wm4@nowhere>
Fri, 28 Aug 2015 14:29:06 +0000 (16:29 +0200)
I broke it.

libass/ass_fontselect.c

index cafe05e4110ec99c262dba038c6f4188ff33a6dd..0514d84d58a9a3875f558b20eb26e7f9e99ecbe7 100644 (file)
@@ -522,7 +522,7 @@ static char *select_font(ASS_FontSelector *priv, ASS_Library *library,
                 // We want to be able to match even if the closest variant
                 // does not have the requested glyph, but another member
                 // of the family has the glyph.
-                if (!check_glyph(&priv->font_infos[i], code))
+                if (!check_glyph(font, code))
                     continue;
 
                 score_min = score;