From b688307468ebbc5afd211bc4e263f6f46fc2b0c6 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 25 Oct 2019 11:57:29 -0400 Subject: fc: remove another assertion that might trigger Apparently, people have fonts without formats, so better don't assert, just silently skip those. --- pango/pangofc-fontmap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pango/pangofc-fontmap.c b/pango/pangofc-fontmap.c index 2df9d16c..535a6f0e 100644 --- a/pango/pangofc-fontmap.c +++ b/pango/pangofc-fontmap.c @@ -1405,8 +1405,7 @@ pango_fc_font_map_list_families (PangoFontMap *fontmap, PangoFcFamily *temp_family; res = FcPatternGetString (fontset->fonts[i], FC_FONTFORMAT, 0, (FcChar8 **)(void*)&s); - g_assert (res == FcResultMatch); - if (!pango_fc_is_supported_font_format (s)) + if (res != FcResultMatch || !pango_fc_is_supported_font_format (s)) continue; res = FcPatternGetString (fontset->fonts[i], FC_FAMILY, 0, (FcChar8 **)(void*)&s); -- cgit v1.2.1