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 /libass/ass_fontselect.h | |
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 'libass/ass_fontselect.h')
-rw-r--r-- | libass/ass_fontselect.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libass/ass_fontselect.h b/libass/ass_fontselect.h index c1371dd..267b6fe 100644 --- a/libass/ass_fontselect.h +++ b/libass/ass_fontselect.h @@ -34,7 +34,8 @@ typedef struct font_info ASS_FontInfo; ASS_FontSelector * ass_fontselect_init(ASS_Library *library, FT_Library ftlibrary, const char *family, - const char *path, const char *config, int fc); + const char *path, const char *config, + ASS_DefaultFontProvider dfp); char *ass_font_select(ASS_FontSelector *priv, ASS_Library *library, ASS_Font *font, int *index, char **postscript_name, int *uid, ASS_FontStream *data, uint32_t code); |