summaryrefslogtreecommitdiffstats
path: root/test/test.c
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2013-12-10 18:45:54 +0100
committerGrigori Goronzy <greg@chown.ath.cx>2015-07-10 10:42:40 +0200
commitbc743feb07cffe7a81e07411a484e499377deb50 (patch)
tree1d5bd66659bbef67c0a1145a4bbcd4b109c06230 /test/test.c
parente95626628eab9a892047c60e4b9926ab50ce1bd4 (diff)
downloadlibass-bc743feb07cffe7a81e07411a484e499377deb50.tar.bz2
libass-bc743feb07cffe7a81e07411a484e499377deb50.tar.xz
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.
Diffstat (limited to 'test/test.c')
-rw-r--r--test/test.c3
1 files changed, 2 insertions, 1 deletions
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)