From bc743feb07cffe7a81e07411a484e499377deb50 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 10 Dec 2013 18:45:54 +0100 Subject: fontselect: expose a fontprovider selection API Allow the user of libass to select the font provider from ass_set_fonts. This API change actually doesn't break client code which was passing `fc=1`; now the same value will autodetect a usable font provider. Also add an api to list available font providers as that is useful for client code to show drop down menus with a font provider to choose from. --- test/test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/test.c') diff --git a/test/test.c b/test/test.c index f533e7a..8522840 100644 --- a/test/test.c +++ b/test/test.c @@ -107,7 +107,8 @@ 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", 1, NULL, 1); + ass_set_fonts(ass_renderer, NULL, "Sans", + ASS_FONTPROVIDER_AUTODETECT, NULL, 1); } static image_t *gen_image(int width, int height) -- cgit v1.2.3