[pango] fc: remove another assertion that might trigger



commit b688307468ebbc5afd211bc4e263f6f46fc2b0c6
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Oct 25 11:57:29 2019 -0400

    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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]