diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2006-02-21 10:12:02 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2006-02-21 10:12:02 +0000 |
commit | 64691f1398152413f91ebe6906806eb9eb8801b1 (patch) | |
tree | 31b205b6594685a7b24de8acb7b23d4b94f7a48b /pango/shape.c | |
parent | a8f4e10b37a927543dfebe1a37a4d33463a209fc (diff) | |
download | pango-64691f1398152413f91ebe6906806eb9eb8801b1.tar.gz |
Change g_critical to g_warning. We already handle them gracefully.
2006-02-21 Behdad Esfahbod <behdad@gnome.org>
* pango/fonts.c, pango/glyphstring.c, pango/pango-fontmap.c,
pango/pango-ot-buffer.c, pango/pangocairo-font.c, pango/pangoft2.c,
pango/pangoxft-font.c, pango/shape.c: Change g_critical to g_warning.
We already handle them gracefully.
Bug 331994 – --disable-debug removes G_DISABLE_CAST_CHECKS
Patch from charlet@act-europe.fr
* configure.in: Do not lose PANGO_DEBUG_FLAGS when reassigning.
Bug 331995 – pango_layout_set_text optimization
Patch from charlet@act-europe.fr
* pango/pango-layout.c: Do not validate input text if asserts are
disabled. Moreover, do not truncate input text on invalid sequence.
Bug 331996 – avoid crashes in win32 font handling
Patch from charlet@act-europe.fr
* pango/pangofc-fontmap.c, pango/pangowin32-fontmap.c,
pango/pangowin32.c: if (!font) return NULL in a number of places.
Diffstat (limited to 'pango/shape.c')
-rw-r--r-- | pango/shape.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pango/shape.c b/pango/shape.c index aa712192..50479b5e 100644 --- a/pango/shape.c +++ b/pango/shape.c @@ -73,6 +73,7 @@ pango_shape (const gchar *text, s = pango_font_description_to_string (desc); pango_font_description_free (desc); + /* TODO: Write out the beginning excerpt of text here? */ g_warning ("shape engine failure, expect ugly output. the offending font is '%s'", s); g_free (s); @@ -88,13 +89,13 @@ pango_shape (const gchar *text, !_pango_warning_history.shape_shape_engine) { _pango_warning_history.shape_shape_engine = TRUE; - g_critical ("pango_shape called with bad shape_engine, expect ugly output"); + g_warning ("pango_shape called with bad shape_engine, expect ugly output"); } if (!PANGO_IS_FONT (analysis->font) && !_pango_warning_history.shape_font) { _pango_warning_history.shape_font = TRUE; - g_critical ("pango_shape called with bad font, expect ugly output"); + g_warning ("pango_shape called with bad font, expect ugly output"); } glyphs->num_glyphs = 0; |