summaryrefslogtreecommitdiff
path: root/pango
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-11-24 18:49:35 -0500
committerMatthias Clasen <mclasen@redhat.com>2021-11-24 19:57:58 -0500
commit9770b4af0fc573cd10b32aee20e0ee5ab6c6d953 (patch)
treeed535a03e1829b1b6253b7a8a8f82ff0991f0729 /pango
parent580ad90e9737b13a941f981c9fa2b2d8e5fae120 (diff)
downloadpango-9770b4af0fc573cd10b32aee20e0ee5ab6c6d953.tar.gz
serializer: Include unknown glyphs count
Diffstat (limited to 'pango')
-rw-r--r--pango/serializer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pango/serializer.c b/pango/serializer.c
index 5c2bdf77..5d2911df 100644
--- a/pango/serializer.c
+++ b/pango/serializer.c
@@ -636,6 +636,9 @@ add_output (JsonBuilder *builder,
json_builder_set_member_name (builder, "is-ellipsized");
json_builder_add_boolean_value (builder, pango_layout_is_ellipsized (layout));
+ json_builder_set_member_name (builder, "unknown-glyphs");
+ json_builder_add_int_value (builder, pango_layout_get_unknown_glyphs_count (layout));
+
pango_layout_get_size (layout, &width, &height);
json_builder_set_member_name (builder, "width");
json_builder_add_int_value (builder, width);