diff libass/ass_fontconfig.c @ 36363:c3aaaf17c721

Update libass to latest git version.
author reimar
date Tue, 24 Sep 2013 20:50:02 +0000
parents 88eebbbbd6a0
children
line wrap: on
line diff
--- a/libass/ass_fontconfig.c	Sun Sep 22 09:03:30 2013 +0000
+++ b/libass/ass_fontconfig.c	Tue Sep 24 20:50:02 2013 +0000
@@ -179,6 +179,14 @@
     rc = FcConfigSubstitute(priv->config, pat, FcMatchPattern);
     if (!rc)
         goto error;
+    /* Fontconfig defaults include a language setting, which it sets based on
+     * some environment variables or defaults to "en". Unset this as we don't
+     * know the real language, and because some some attached fonts lack
+     * non-ascii characters included in fontconfig's list of characters
+     * required for English support and therefore don't match the lang=en
+     * criterion.
+     */
+    FcPatternDel(pat, "lang");
 
     fsorted = FcFontSort(priv->config, pat, FcTrue, NULL, &result);
     ffullname = match_fullname(library, priv, family, bold, italic);