[pango/cairo-fontconfig-buglet] cairo: Use the proper FcConfig
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/cairo-fontconfig-buglet] cairo: Use the proper FcConfig
- Date: Tue, 18 Aug 2020 16:23:40 +0000 (UTC)
commit da2e893bbf7161fa45e4fbf3dc192259ebe0ae64
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.
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 bd3a85834..015b81700 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]