summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-10-25 11:57:29 -0400
committerMatthias Clasen <mclasen@redhat.com>2019-10-25 11:57:29 -0400
commitb688307468ebbc5afd211bc4e263f6f46fc2b0c6 (patch)
tree5aa26674e8183ee3b47ac5c8aea0a4523bd183d9
parent9f03d48261cb25e59ba029b194e70881d6ae8f37 (diff)
downloadpango-b688307468ebbc5afd211bc4e263f6f46fc2b0c6.tar.gz
fc: remove another assertion that might trigger
Apparently, people have fonts without formats, so better don't assert, just silently skip those.
-rw-r--r--pango/pangofc-fontmap.c3
1 files changed, 1 insertions, 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);