From b1a840bec037af78b67d1f1d7f72e02e3be119a1 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 18 Jun 2024 08:32:17 -0400 Subject: [PATCH] Try to avoid aliasing with system fonts The rendernode parser creates its own fontmap for the fonts that we deserialize from blobs. But we were using the system fontconfig configuration for it, leading to system fonts still being found. This is bad, and causes test failures in ci. Try with an empty fontconfig configuration instead. --- gsk/gskrendernodeparser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gsk/gskrendernodeparser.c b/gsk/gskrendernodeparser.c index 132cd48354..bbe4cd7cbc 100644 --- a/gsk/gskrendernodeparser.c +++ b/gsk/gskrendernodeparser.c @@ -1005,7 +1005,7 @@ ensure_fontmap (Context *context) context->fontmap = pango_cairo_font_map_new (); - config = FcInitLoadConfig (); + config = FcConfigCreate (); pango_fc_font_map_set_config (PANGO_FC_FONT_MAP (context->fontmap), config); FcConfigDestroy (config);