summaryrefslogtreecommitdiff
path: root/pango/pangoxft-fontmap.c
diff options
context:
space:
mode:
authorAlex Larsson <alexl@redhat.com>2002-01-10 00:27:26 +0000
committerAlexander Larsson <alexl@src.gnome.org>2002-01-10 00:27:26 +0000
commitc028808696a65c64e206cebe853c39a4cf86888b (patch)
treea36a239a029a2646da7708c776103a21024982d9 /pango/pangoxft-fontmap.c
parente36de3bcb0c84f15e477f8885ea948822ccd6e1a (diff)
downloadpango-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.c4
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);
}