pango r2748 - in trunk: . pango
- From: behdad svn gnome org
- To: svn-commits-list gnome org
- Subject: pango r2748 - in trunk: . pango
- Date: Sat, 6 Dec 2008 22:17:17 +0000 (UTC)
Author: behdad
Date: Sat Dec 6 22:17:16 2008
New Revision: 2748
URL: http://svn.gnome.org/viewvc/pango?rev=2748&view=rev
Log:
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.
Modified:
trunk/ChangeLog
trunk/pango/pangocairo-font.c
Modified: trunk/pango/pangocairo-font.c
==============================================================================
--- trunk/pango/pangocairo-font.c (original)
+++ trunk/pango/pangocairo-font.c Sat Dec 6 22:17:16 2008
@@ -111,6 +111,7 @@
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 @@
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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]