summaryrefslogtreecommitdiff
path: root/pango/shape.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2006-02-06 11:08:44 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2006-02-06 11:08:44 +0000
commit9f81790eaec937ced41c31fb6204d63a377a00a7 (patch)
treed00c3ce91fcb08f5742b1a03a1b72ec03fee7b41 /pango/shape.c
parent3293001b8aa09a4e812af974b389843c952871bb (diff)
downloadpango-9f81790eaec937ced41c31fb6204d63a377a00a7.tar.gz
Warn only once per font-description that cannot be loaded.
2006-02-06 Behdad Esfahbod <behdad@gnome.org> * pango/pango-fontmap.c (pango_font_map_real_load_fontset): Warn only once per font-description that cannot be loaded. * pango/pangox.c: Make it not crash if no font found, like other backends.
Diffstat (limited to 'pango/shape.c')
-rw-r--r--pango/shape.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pango/shape.c b/pango/shape.c
index 29c28998..6ff3f379 100644
--- a/pango/shape.c
+++ b/pango/shape.c
@@ -73,7 +73,7 @@ pango_shape (const gchar *text,
s = pango_font_description_to_string (desc);
pango_font_description_free (desc);
- g_warning ("shape engine failure, expect ugly output. the offending font is `%s'", s);
+ g_warning ("shape engine failure, expect ugly output. the offending font is '%s'", s);
g_free (s);
@@ -87,7 +87,7 @@ pango_shape (const gchar *text,
if (!PANGO_IS_ENGINE_SHAPE (analysis->shape_engine) &&
!_pango_warning_history.shape_shape_engine)
{
- _pango_warning_history.shape_font = TRUE;
+ _pango_warning_history.shape_shape_engine = TRUE;
g_critical ("pango_shape called with bad shape_engine, expect ugly output");
}
if (!PANGO_IS_FONT (analysis->font) &&