From b4e604380d8ec8fa5b991a1b028240fc4436eec7 Mon Sep 17 00:00:00 2001 From: Grigori Goronzy Date: Fri, 17 Jul 2009 02:56:05 +0200 Subject: 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. --- test/test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/test.c b/test/test.c index 8c7b602..6809986 100644 --- a/test/test.c +++ b/test/test.c @@ -93,7 +93,7 @@ static void init(int frame_w, int frame_h) ass_set_margins(ass_renderer, 0, 0, 0, 0); ass_set_use_margins(ass_renderer, 0); ass_set_font_scale(ass_renderer, 1.); - ass_set_fonts(ass_renderer, NULL, "Sans", 1, NULL); + ass_set_fonts(ass_renderer, NULL, "Sans", 1, NULL, 1); } static image_t *gen_image(int width, int height) -- cgit v1.2.3