]> granicus.if.org Git - libass/commitdiff
test: use proper fallback name
authorGrigori Goronzy <greg@chown.ath.cx>
Mon, 7 Sep 2015 00:12:43 +0000 (02:12 +0200)
committerGrigori Goronzy <greg@chown.ath.cx>
Mon, 7 Sep 2015 00:18:29 +0000 (02:18 +0200)
The correct generic family name is "sans-serif", the short form "Sans"
is specific to fontconfig only.

test/test.c

index 175e8be4536cedb15378972e04a5ea5cfe7c98cf..4884b2836e7d8cc44fbe5a901aa3269be262a3bc 100644 (file)
@@ -107,7 +107,7 @@ static void init(int frame_w, int frame_h)
     }
 
     ass_set_frame_size(ass_renderer, frame_w, frame_h);
-    ass_set_fonts(ass_renderer, NULL, "Sans",
+    ass_set_fonts(ass_renderer, NULL, "sans-serif",
                   ASS_FONTPROVIDER_AUTODETECT, NULL, 1);
 }