[pango/baseline-shift] Add debug spew



commit 648a4e5a1e02425813c675db56c30196d043d570
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Aug 30 17:56:38 2021 -0400

    Add debug spew

 tests/test-font.c | 9 +++++++++
 1 file changed, 9 insertions(+)
---
diff --git a/tests/test-font.c b/tests/test-font.c
index 05af6526..8a6cea31 100644
--- a/tests/test-font.c
+++ b/tests/test-font.c
@@ -271,6 +271,15 @@ test_roundtrip_plain (void)
   font = pango_context_load_font (context, desc);
   desc2 = pango_font_describe (font);
 
+  if (!pango_font_description_equal (desc2, desc))
+    {
+      char *s = pango_font_description_to_string (desc);
+      char *s2 = pango_font_description_to_string (desc2);
+      g_print ("desc2 is: %s\ndesc is: %s\n", s2, s);
+      g_free (s);
+      g_free (s2);
+    }
+
   g_assert (pango_font_description_equal (desc2, desc));
 
   pango_font_description_free (desc2);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]