summaryrefslogtreecommitdiff
path: root/tests/testiter.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-07-22 08:40:58 -0700
committerMatthias Clasen <mclasen@redhat.com>2019-07-22 09:12:57 -0700
commita43be2c1930afa5b2c70f6ee984d919d5cd6377d (patch)
treeccb94f6fd9a769046cc814368f0be69428d8ddaa /tests/testiter.c
parent9033c38a4f98c6e3425e83eb62b1fc54e5f43238 (diff)
downloadpango-a43be2c1930afa5b2c70f6ee984d919d5cd6377d.tar.gz
testiter: Add more debug spew
Diffstat (limited to 'tests/testiter.c')
-rw-r--r--tests/testiter.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/testiter.c b/tests/testiter.c
index de3b462f..653c4bec 100644
--- a/tests/testiter.c
+++ b/tests/testiter.c
@@ -115,12 +115,19 @@ iter_char_test (PangoLayout *layout)
if (run)
{
+ PangoFontDescription *desc;
+ char *str;
+
/* Get needed data for the GlyphString */
pango_layout_iter_get_run_extents(iter, NULL, &run_extents);
offset = run->item->offset;
rtl = run->item->analysis.level%2;
- verbose (" (current run: offset=%d,x=%d,len=%d,rtl=%d)\n",
- offset, run_extents.x, run->item->length, rtl);
+ desc = pango_font_describe (run->item->analysis.font);
+ str = pango_font_description_to_string (desc);
+ verbose (" (current run: font=%s,offset=%d,x=%d,len=%d,rtl=%d)\n",
+ str, offset, run_extents.x, run->item->length, rtl);
+ g_free (str);
+ pango_font_description_free (desc);
/* Calculate expected x result using index_to_x */
pango_glyph_string_index_to_x (run->glyphs,