diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2013-12-13 08:14:43 +0100 |
---|---|---|
committer | Grigori Goronzy <greg@chown.ath.cx> | 2015-07-10 10:42:40 +0200 |
commit | f6e321acb11492ac87171825a630bc4e189c5cea (patch) | |
tree | 3bcc3739ef772df3c10562d3008591f08e6a5ecd /libass/ass.h | |
parent | bc743feb07cffe7a81e07411a484e499377deb50 (diff) | |
download | libass-f6e321acb11492ac87171825a630bc4e189c5cea.tar.bz2 libass-f6e321acb11492ac87171825a630bc4e189c5cea.tar.xz |
fontselect: expose a fontprovider listing API
This allows client code to query libass for the font providers it was compiled
with. It can be useful for clients so that they can show selection interfaces
to their users.
Diffstat (limited to 'libass/ass.h')
-rw-r--r-- | libass/ass.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libass/ass.h b/libass/ass.h index a3feb0b..1fb2234 100644 --- a/libass/ass.h +++ b/libass/ass.h @@ -401,6 +401,14 @@ void ass_set_line_spacing(ASS_Renderer *priv, double line_spacing); void ass_set_line_position(ASS_Renderer *priv, double line_position); /** + * \brief Get the list of available font providers. + * \return list of available font providers (user owns the returned array) + */ +void ass_get_available_font_providers(ASS_Library *priv, + ASS_DefaultFontProvider **providers, + size_t *size); + +/** * \brief Set font lookup defaults. * \param default_font path to default font to use. Must be supplied if * fontconfig is disabled or unavailable. |