summaryrefslogtreecommitdiff
path: root/pango
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-08-18 12:22:20 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-08-18 12:23:31 -0400
commitda2e893bbf7161fa45e4fbf3dc192259ebe0ae64 (patch)
tree3b32627e1cebde4a6d661726df8d1511777bd79e /pango
parentc4ae4782053aa5e8d5b2e78b580bfd74aa9a038d (diff)
downloadpango-da2e893bbf7161fa45e4fbf3dc192259ebe0ae64.tar.gz
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.
Diffstat (limited to 'pango')
-rw-r--r--pango/pangocairo-fcfontmap.c2
1 files changed, 1 insertions, 1 deletions
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),