diff options
author | Grigori Goronzy <greg@blackbox> | 2009-07-17 02:56:05 +0200 |
---|---|---|
committer | Grigori Goronzy <greg@blackbox> | 2009-07-17 02:56:05 +0200 |
commit | b4e604380d8ec8fa5b991a1b028240fc4436eec7 (patch) | |
tree | c3cfb14da2975a34c7f90884bb6086078aae2119 /libass/ass.h | |
parent | 0f2cf3f12a3eed740d7717fb35c11ba5d8fe4c22 (diff) | |
download | libass-b4e604380d8ec8fa5b991a1b028240fc4436eec7.tar.bz2 libass-b4e604380d8ec8fa5b991a1b028240fc4436eec7.tar.xz |
Improve fontconfig setup
Add an argument to ass_set_fonts for controlling whether the fontconfig
font cache should be built/updated. Add a new function ass_fonts_update
to make it possible to update fonts later on.
Additionally, stop using FcConfigSetDefault for thread safety.
Diffstat (limited to 'libass/ass.h')
-rw-r--r-- | libass/ass.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/libass/ass.h b/libass/ass.h index 0a03ec2..b7eab3c 100644 --- a/libass/ass.h +++ b/libass/ass.h @@ -100,9 +100,16 @@ void ass_set_line_spacing(ass_renderer_t *priv, double line_spacing); * \param fc bool, use fontconfig? * \param config path to fontconfig configuration file, or NULL. Only matters * if fontconfig is used + * \param update whether fontconfig cache should be built/updated now. Make + * sure to call ass_fonts_update later if 0! Only matters if fontconfig + * is used. + * \return success */ -int ass_set_fonts(ass_renderer_t *priv, const char *default_font, - const char *default_family, int fc, const char *config); +void ass_set_fonts(ass_renderer_t *priv, const char *default_font, + const char *default_family, int fc, const char *config, + int update); + +int ass_fonts_update(ass_renderer_t *priv); /** * \brief render a frame, producing a list of ass_image_t |