[pango/line-breaking-fixes: 2/12] debug spew
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/line-breaking-fixes: 2/12] debug spew
- Date: Fri, 12 Nov 2021 20:15:12 +0000 (UTC)
commit 7cdc68ce6d9647008f44a182a90fc78ec699768e
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Nov 11 21:45:06 2021 -0500
debug spew
utils/viewer-render.c | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/utils/viewer-render.c b/utils/viewer-render.c
index d4b3f0f4..53a8814f 100644
--- a/utils/viewer-render.c
+++ b/utils/viewer-render.c
@@ -379,9 +379,13 @@ do_output (PangoContext *context,
pango_context_set_matrix (context, orig_matrix);
pango_matrix_free (orig_matrix);
- int w, h;
- pango_layout_get_size (layout, &w, &h);
- g_print ("layout %d %d\n", w, h);
+
+ GBytes *bytes = pango_layout_serialize (layout);
+ g_file_set_contents ("layout.out",
+ g_bytes_get_data (bytes, NULL),
+ g_bytes_get_size (bytes),
+ NULL);
+
g_object_unref (layout);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]