[pango/speed-up-format-filtering: 4/5] Use the right FcConfig for FcRenderPrepare
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/speed-up-format-filtering: 4/5] Use the right FcConfig for FcRenderPrepare
- Date: Sat, 22 Aug 2020 01:44:16 +0000 (UTC)
commit 34bd2545562d5bf3207f2fca1774d3a2a315c112
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Aug 19 07:42:31 2020 -0400
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.
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 b15a4fea..6da07e8c 100644
--- a/pango/pangofc-fontmap.c
+++ b/pango/pangofc-fontmap.c
@@ -1147,7 +1147,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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]