summaryrefslogtreecommitdiff
path: root/tests/test-layout.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-08-28 10:23:52 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-08-28 11:15:05 -0400
commit94e5f18e80aeb95b14217ed7f7efa790eb48c3c9 (patch)
treead79bc4e740256452abeb2bffa762bc207f6a0a9 /tests/test-layout.c
parent05f62eae063ec1cfe56cbfcc9e99b6dfa989ef90 (diff)
downloadpango-94e5f18e80aeb95b14217ed7f7efa790eb48c3c9.tar.gz
tests: Only print known analysis flags
We're going to steal one bit for private purposes.
Diffstat (limited to 'tests/test-layout.c')
-rw-r--r--tests/test-layout.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test-layout.c b/tests/test-layout.c
index f142228b..0139c138 100644
--- a/tests/test-layout.c
+++ b/tests/test-layout.c
@@ -127,6 +127,10 @@ dump_lines (PangoLayout *layout, GString *string)
pango_layout_iter_free (iter);
}
+#define ANALYSIS_FLAGS (PANGO_ANALYSIS_FLAG_CENTERED_BASELINE | \
+ PANGO_ANALYSIS_FLAG_IS_ELLIPSIS | \
+ PANGO_ANALYSIS_FLAG_NEED_HYPHEN)
+
static void
dump_runs (PangoLayout *layout, GString *string)
{
@@ -160,7 +164,7 @@ dump_runs (PangoLayout *layout, GString *string)
g_string_append_printf (string, "i=%d, index=%d, chars=%d, level=%d, gravity=%s, flags=%d, font=%s, script=%s, language=%s, '%s'\n",
i, index, item->num_chars, item->analysis.level,
gravity_name (item->analysis.gravity),
- item->analysis.flags,
+ item->analysis.flags & ANALYSIS_FLAGS,
opt_show_font ? font : "OMITTED", /* for some reason, this fails on build.gnome.org, so leave it out */
script_name (item->analysis.script),
pango_language_to_string (item->analysis.language),