summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-08-19 07:42:31 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-08-19 07:45:37 -0400
commitccb686a6fe7ba04c5b5cd675f3a10277e4f2fcb6 (patch)
tree82b090ca6d4f547ebb52c23ada389a061c0d6605
parente08269b8847d64843498f7ebf5bc6e5de6fbc45e (diff)
downloadpango-ccb686a6fe7ba04c5b5cd675f3a10277e4f2fcb6.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.
-rw-r--r--pango/pangofc-fontmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pangofc-fontmap.c b/pango/pangofc-fontmap.c
index 4c2aa094..2dc3ab56 100644
--- a/pango/pangofc-fontmap.c
+++ b/pango/pangofc-fontmap.c
@@ -974,7 +974,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;