From 8e44300fe147bf7d46b4c4e802f2a563654246a8 Mon Sep 17 00:00:00 2001 From: Andrey Kaydalov Date: Fri, 17 Jun 2022 02:14:02 +0300 Subject: [PATCH] Notify pango font map when adding another font file --- src/font.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/font.c b/src/font.c index b8959638..7d459616 100644 --- a/src/font.c +++ b/src/font.c @@ -243,6 +243,9 @@ GdipPrivateAddFontFile (GpFontCollection *fontCollection, GDIPCONST WCHAR *filen fclose (fileHandle); FcConfigAppFontAddFile (fontCollection->config, file); +#if USE_PANGO_RENDERING + pango_fc_font_map_config_changed((PangoFcFontMap *)fontCollection->pango_font_map); +#endif GdipFree (file); return Ok;