[pango/fix-FcConfig-uses: 2/2] Use the right FcConfig for FcFontList
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/fix-FcConfig-uses: 2/2] Use the right FcConfig for FcFontList
- Date: Mon, 22 Feb 2021 13:19:51 +0000 (UTC)
commit 3fc7b26f922d2b014a2c9731bf2215b710e39251
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Feb 22 08:11:40 2021 -0500
Use the right FcConfig for FcFontList
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.
pango/pangofc-fontmap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]