diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-08-14 23:18:25 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-08-14 23:18:25 -0400 |
commit | a2095b02d71a62a32e39fd4ca3c5c92457cdead7 (patch) | |
tree | 922d28d99b629e494ff7732094774ac68fe41a24 /tests | |
parent | 9a2b0f07225aaf69b33494ce7de62c814cff6b59 (diff) | |
download | pango-a2095b02d71a62a32e39fd4ca3c5c92457cdead7.tar.gz |
Add a testcase for font-features in markup
Diffstat (limited to 'tests')
-rw-r--r-- | tests/markup-parse.c | 3 | ||||
-rw-r--r-- | tests/markups/valid-9.expected | 8 | ||||
-rw-r--r-- | tests/markups/valid-9.markup | 1 |
3 files changed, 12 insertions, 0 deletions
diff --git a/tests/markup-parse.c b/tests/markup-parse.c index bd4b1634..60288d8f 100644 --- a/tests/markup-parse.c +++ b/tests/markup-parse.c @@ -97,6 +97,9 @@ print_attr (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; diff --git a/tests/markups/valid-9.expected b/tests/markups/valid-9.expected new file mode 100644 index 00000000..06936f9f --- /dev/null +++ b/tests/markups/valid-9.expected @@ -0,0 +1,8 @@ +Blue text + + +--- + +range 0 9 +[0 9] font-features kern 0, dlig, lnum 1, -pnum +range 9 2147483647 diff --git a/tests/markups/valid-9.markup b/tests/markups/valid-9.markup new file mode 100644 index 00000000..b807f766 --- /dev/null +++ b/tests/markups/valid-9.markup @@ -0,0 +1 @@ +<markup><span font-features="kern 0, dlig, lnum 1, -pnum">Blue text</span></markup> |