diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-08-19 07:42:31 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-02-22 08:12:57 -0500 |
commit | 479f99dc3bf4c7e74a77ebbc558847b8fb39f002 (patch) | |
tree | d7a1a5682a07510e2be737881aa399a555358050 /pango/pangofc-fontmap.c | |
parent | 3fea9968434c7d6c0b73c481d27d5e2cfe71fda1 (diff) | |
download | pango-479f99dc3bf4c7e74a77ebbc558847b8fb39f002.tar.gz |
Use the right FcConfig for FcRenderPrepare
Passing NULL for a config argument in a fontconfig
api means we are using the default configuration,
which may be different from the one the fontmap
is supposed to be using.
Fix an instance of this in pango_fc_fontset_load_next_font.
Diffstat (limited to 'pango/pangofc-fontmap.c')
-rw-r--r-- | pango/pangofc-fontmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pangofc-fontmap.c b/pango/pangofc-fontmap.c index fd17309d..2009c46a 100644 --- a/pango/pangofc-fontmap.c +++ b/pango/pangofc-fontmap.c @@ -978,7 +978,7 @@ pango_fc_fontset_load_next_font (PangoFcFontset *fontset) if (prepare) { - font_pattern = FcFontRenderPrepare (NULL, pattern, font_pattern); + font_pattern = FcFontRenderPrepare (fontset->key->fontmap->priv->config, pattern, font_pattern); if (G_UNLIKELY (!font_pattern)) return NULL; |