[pango/coretext-font-describe] Add debug spew
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/coretext-font-describe] Add debug spew
- Date: Mon, 30 Aug 2021 21:58:32 +0000 (UTC)
commit 33d10710442abdf88595665a70250dd3533bc2a3
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 c3a1c29f..c7fd42fa 100644
--- a/tests/test-font.c
+++ b/tests/test-font.c
@@ -270,6 +270,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_true (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]