diff options
author | Alex Larsson <alexl@redhat.com> | 2002-01-10 00:27:26 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2002-01-10 00:27:26 +0000 |
commit | c028808696a65c64e206cebe853c39a4cf86888b (patch) | |
tree | a36a239a029a2646da7708c776103a21024982d9 /pango/pangoxft-fontmap.c | |
parent | e36de3bcb0c84f15e477f8885ea948822ccd6e1a (diff) | |
download | pango-c028808696a65c64e206cebe853c39a4cf86888b.tar.gz |
Add g_error if font match fails, referencing bug #68030, which is the
2002-01-09 Alex Larsson <alexl@redhat.com>
* pango/pangoxft-fontmap.c (pango_xft_font_map_load_fontset):
Add g_error if font match fails, referencing bug #68030, which
is the "libXrender is broken" bug.
Diffstat (limited to 'pango/pangoxft-fontmap.c')
-rw-r--r-- | pango/pangoxft-fontmap.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pango/pangoxft-fontmap.c b/pango/pangoxft-fontmap.c index 53dbaec1..8fbc671b 100644 --- a/pango/pangoxft-fontmap.c +++ b/pango/pangoxft-fontmap.c @@ -612,6 +612,10 @@ pango_xft_font_map_load_fontset (PangoFontMap *fontmap, if (array->len == 0) { match = XftFontSetMatch (&xfontmap->font_set, 1, pattern, &res); + if (match == NULL) + g_error ("Failed to match any font. This could be due to a broken Xft " + "configuration, or if you run XFree 4.1.0 due to a bug in libXrender. " + "For more information about this, read http://bugzilla.gnome.org/show_bug.cgi?id=68030\n"); g_ptr_array_add (array, match); } |