[pango/item-offset: 1/6] tests: Only print known analysis flags
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/item-offset: 1/6] tests: Only print known analysis flags
- Date: Sat, 28 Aug 2021 15:29:45 +0000 (UTC)
commit 94e5f18e80aeb95b14217ed7f7efa790eb48c3c9
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Aug 28 10:23:52 2021 -0400
tests: Only print known analysis flags
We're going to steal one bit for private purposes.
tests/test-layout.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
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),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]