diff options
author | Owen Taylor <otaylor@redhat.com> | 2002-12-07 06:08:39 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2002-12-07 06:08:39 +0000 |
commit | 77741531e266f127839c7bb8fefcea43f3c5ebe0 (patch) | |
tree | ac30ed4554c616b9cd0bae8df1c0c300689fc9b9 /pango/pangofc-fontmap.cI | |
parent | 92e4745dbbd339b8756a6b793d1610462089e49f (diff) | |
download | pango-77741531e266f127839c7bb8fefcea43f3c5ebe0.tar.gz |
Print out an informative error message and exit(1) if no fonts are found.
Sat Dec 7 01:05:25 2002 Owen Taylor <otaylor@redhat.com>
* pango/pangofc-fontmap.cI (pango_fc_font_map_get_patterns):
Print out an informative error message and exit(1) if
no fonts are found. (#98672)
* pango/pangoft2.c (pango_ft2_font_get_face): Fix some
bugs in the last commit.
Diffstat (limited to 'pango/pangofc-fontmap.cI')
-rw-r--r-- | pango/pangofc-fontmap.cI | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/pango/pangofc-fontmap.cI b/pango/pangofc-fontmap.cI index ad24a4d4..b5d9b722 100644 --- a/pango/pangofc-fontmap.cI +++ b/pango/pangofc-fontmap.cI @@ -584,7 +584,20 @@ pango_fc_font_map_get_patterns (PangoFontMap *fontmap, font_patterns = FcFontSort (NULL, pattern, FcTrue, 0, &res); if (!font_patterns) - return NULL; + { + g_printerr ("No fonts found; 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"); + + /* 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); + } patterns = g_new (PangoFcPatternSet, 1); patterns->patterns = g_new (FcPattern *, font_patterns->nfont); |