[pango: 1/4] test-common: extend print_attribute()



commit 806bcfb8f2e854740180ea5a39ae7ebdd58c5906
Author: Ross Burton <ross burton intel com>
Date:   Mon Mar 4 13:16:21 2019 +0000

    test-common: extend print_attribute()
    
    The copy of print_attribute() in markup-parse.c handles more attributes, so add
    those here too.

 tests/test-common.c | 9 +++++++++
 1 file changed, 9 insertions(+)
---
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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]