summaryrefslogtreecommitdiff
path: root/pango/pangofc-fontmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'pango/pangofc-fontmap.c')
-rw-r--r--pango/pangofc-fontmap.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/pango/pangofc-fontmap.c b/pango/pangofc-fontmap.c
index 4840a1f0..adc8c796 100644
--- a/pango/pangofc-fontmap.c
+++ b/pango/pangofc-fontmap.c
@@ -1072,18 +1072,14 @@ pango_fc_font_map_get_patterns (PangoFontMap *fontmap,
if (!font_patterns)
{
- g_printerr ("No fonts found; this probably means that the fontconfig\n"
+ g_critical ("No fonts found:\n"
+ "This probably means that the fontconfig\n"
"library is not correctly configured. You may need to\n"
"edit the fonts.conf configuration file. More information\n"
"about fontconfig can be found in the fontconfig(3) manual\n"
- "page and on http://fontconfig.org\n");
+ "page and on http://fontconfig.org");
- /* There is no point in proceeding; we'll just get a segfault later
- * on, and a bunch more possibly confusing error messages in between.
- */
-
- /* return NULL; */
- exit (1);
+ font_patterns = FcFontSetCreate ();
}
patterns = g_slice_new (PangoFcPatternSet);