summaryrefslogtreecommitdiff
path: root/pango/pangofc-fontmap.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-02-22 08:11:40 -0500
committerMatthias Clasen <mclasen@redhat.com>2021-02-22 08:13:07 -0500
commit3fc7b26f922d2b014a2c9731bf2215b710e39251 (patch)
tree026d69e6771c721633b2bb4a45eb43f50c98603e /pango/pangofc-fontmap.c
parent479f99dc3bf4c7e74a77ebbc558847b8fb39f002 (diff)
downloadpango-3fc7b26f922d2b014a2c9731bf2215b710e39251.tar.gz
Use the right FcConfig for FcFontListfix-FcConfig-uses
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_face_list_sizes.
Diffstat (limited to 'pango/pangofc-fontmap.c')
-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 2009c46a..3b12d246 100644
--- a/pango/pangofc-fontmap.c
+++ b/pango/pangofc-fontmap.c
@@ -2652,7 +2652,7 @@ pango_fc_face_list_sizes (PangoFontFace *face,
objectset = FcObjectSetCreate ();
FcObjectSetAdd (objectset, FC_PIXEL_SIZE);
- fontset = FcFontList (NULL, pattern, objectset);
+ fontset = FcFontList (fcface->family->fontmap->priv->config, pattern, objectset);
if (fontset)
{