diff options
author | Ross Burton <ross.burton@intel.com> | 2019-03-04 13:16:21 +0000 |
---|---|---|
committer | Ross Burton <ross.burton@intel.com> | 2019-03-25 14:14:42 +0000 |
commit | 806bcfb8f2e854740180ea5a39ae7ebdd58c5906 (patch) | |
tree | ba92bc24543e0cd1e04d0b84a1ff0cb00e808a06 /tests/test-common.c | |
parent | d5ac8f5d9092077784c4b06f3d498b910a49e2cb (diff) | |
download | pango-806bcfb8f2e854740180ea5a39ae7ebdd58c5906.tar.gz |
test-common: extend print_attribute()
The copy of print_attribute() in markup-parse.c handles more attributes, so add
those here too.
Diffstat (limited to 'tests/test-common.c')
-rw-r--r-- | tests/test-common.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test-common.c b/tests/test-common.c index adeb4b66..76e74099 100644 --- a/tests/test-common.c +++ b/tests/test-common.c @@ -153,6 +153,15 @@ print_attribute (PangoAttribute *attr, GString *string) case PANGO_ATTR_GRAVITY_HINT: g_string_append_printf (string,"gravity-hint %d\n", ((PangoAttrInt *)attr)->value); break; + case PANGO_ATTR_FONT_FEATURES: + g_string_append_printf (string,"font-features %s\n", ((PangoAttrString *)attr)->value); + break; + case PANGO_ATTR_FOREGROUND_ALPHA: + g_string_append_printf (string,"foreground-alpha %04x\n", ((PangoAttrInt *)attr)->value); + break; + case PANGO_ATTR_BACKGROUND_ALPHA: + g_string_append_printf (string,"background-alpha %04x\n", ((PangoAttrInt *)attr)->value); + break; default: g_assert_not_reached (); break; |