diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-10-25 11:57:29 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-10-25 11:57:29 -0400 |
commit | b688307468ebbc5afd211bc4e263f6f46fc2b0c6 (patch) | |
tree | 5aa26674e8183ee3b47ac5c8aea0a4523bd183d9 /pango/pangofc-fontmap.c | |
parent | 9f03d48261cb25e59ba029b194e70881d6ae8f37 (diff) | |
download | pango-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.
Diffstat (limited to 'pango/pangofc-fontmap.c')
-rw-r--r-- | pango/pangofc-fontmap.c | 3 |
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); |