diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2008-12-06 22:17:16 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2008-12-06 22:17:16 +0000 |
commit | 0e4b6847e58bfd052b648c80983476a9e6b062db (patch) | |
tree | 61b1ce2a96b49142c59d8a96c2e44a359d684a44 /pango/pangocairo-font.c | |
parent | 1ec099a51c7faec59e4b639cea95d08faf886615 (diff) | |
download | pango-0e4b6847e58bfd052b648c80983476a9e6b062db.tar.gz |
Add more debug info if creating scaled font failed.
2008-12-06 Behdad Esfahbod <behdad@gnome.org>
* pango/pangocairo-font.c
(_pango_cairo_font_private_get_scaled_font):
Add more debug info if creating scaled font failed.
svn path=/trunk/; revision=2748
Diffstat (limited to 'pango/pangocairo-font.c')
-rw-r--r-- | pango/pangocairo-font.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pango/pangocairo-font.c b/pango/pangocairo-font.c index 11cb267b..472a0261 100644 --- a/pango/pangocairo-font.c +++ b/pango/pangocairo-font.c @@ -111,6 +111,7 @@ done: if (G_UNLIKELY (cf_priv->scaled_font == NULL || cairo_scaled_font_status (cf_priv->scaled_font) != CAIRO_STATUS_SUCCESS)) { + cairo_scaled_font_t *scaled_font = cf_priv->scaled_font; PangoFont *font = PANGO_FONT (cf_priv->cfont); static GQuark warned_quark = 0; if (!warned_quark) @@ -129,6 +130,18 @@ done: font_face ? "scaled font" : "font face", s); + if (!font_face) + g_warning ("font_face is NULL"); + else + g_warning ("font_font status is: %s", + cairo_status_to_string (cairo_font_face_status (font_face))); + + if (!scaled_font) + g_warning ("scaled_font is NULL"); + else + g_warning ("scaled_font status is: %s", + cairo_status_to_string (cairo_scaled_font_status (scaled_font))); + g_free (s); g_object_set_qdata_full (G_OBJECT (font), warned_quark, |