From 9182f72ad5fa34456174291bdf050d9105483e6e Mon Sep 17 00:00:00 2001 From: eugeni Date: Sun, 17 Dec 2006 12:35:12 +0000 Subject: [PATCH] Make -embeddedfonts enabled by default with FontConfig >= 2.4.2. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21648 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libass/ass_mp.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libass/ass_mp.c b/libass/ass_mp.c index a4d195f..5f0234a 100644 --- a/libass/ass_mp.c +++ b/libass/ass_mp.c @@ -29,6 +29,10 @@ #include "ass_mp.h" #include "ass_library.h" +#ifdef HAVE_FONTCONFIG +#include +#endif + // libass-related command line options ass_library_t* ass_library; int ass_enabled = 0; @@ -36,7 +40,11 @@ float ass_font_scale = 1.; float ass_line_spacing = 0.; int ass_top_margin = 0; int ass_bottom_margin = 0; +#if defined(FC_VERSION) && (FC_VERSION >= 20402) +int extract_embedded_fonts = 1; +#else int extract_embedded_fonts = 0; +#endif char **ass_force_style_list = NULL; int ass_use_margins = 0; char* ass_color = NULL; -- 2.40.0