[pango/pango-1-44] cairo: Use the proper FcConfig



commit 51a3df39aec7f831cbb30fb8d0d890796ca4cdeb
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Aug 18 12:22:20 2020 -0400

    cairo: Use the proper FcConfig
    
    When calling into FcConfig api, passing NULL means
    "use the default config". But we may have a set config
    that we should be using for all fontconfig calls.
    
    (cherry-picked from commit da2e893b)

 pango/pangocairo-fcfontmap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/pango/pangocairo-fcfontmap.c b/pango/pangocairo-fcfontmap.c
index bd3a8583..015b8170 100644
--- a/pango/pangocairo-fcfontmap.c
+++ b/pango/pangocairo-fcfontmap.c
@@ -103,7 +103,7 @@ pango_cairo_fc_font_map_fontset_key_substitute (PangoFcFontMap    *fcfontmap G_G
                                                PangoFcFontsetKey *fontkey,
                                                FcPattern         *pattern)
 {
-  FcConfigSubstitute (NULL, pattern, FcMatchPattern);
+  FcConfigSubstitute (pango_fc_font_map_get_config (fcfontmap), pattern, FcMatchPattern);
 
   if (fontkey)
     cairo_ft_font_options_substitute (pango_fc_fontset_key_get_context_key (fontkey),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]