diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2013-12-10 18:45:54 +0100 |
---|---|---|
committer | Grigori Goronzy <greg@chown.ath.cx> | 2015-07-10 10:42:40 +0200 |
commit | bc743feb07cffe7a81e07411a484e499377deb50 (patch) | |
tree | 1d5bd66659bbef67c0a1145a4bbcd4b109c06230 /test/test.c | |
parent | e95626628eab9a892047c60e4b9926ab50ce1bd4 (diff) | |
download | libass-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.c | 3 |
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) |