summaryrefslogtreecommitdiff
path: root/pango/pango-markup.c
diff options
context:
space:
mode:
Diffstat (limited to 'pango/pango-markup.c')
-rw-r--r--pango/pango-markup.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/pango/pango-markup.c b/pango/pango-markup.c
index c96c29e9..aedf96f9 100644
--- a/pango/pango-markup.c
+++ b/pango/pango-markup.c
@@ -1077,6 +1077,7 @@ span_parse_func (MarkupData *md G_GNUC_UNUSED,
const char *fallback = NULL;
const char *gravity = NULL;
const char *gravity_hint = NULL;
+ const char *font_features = NULL;
g_markup_parse_context_get_position (context,
&line_number, &char_number);
@@ -1119,7 +1120,9 @@ span_parse_func (MarkupData *md G_GNUC_UNUSED,
CHECK_ATTRIBUTE2(weight, "font_weight");
CHECK_ATTRIBUTE (foreground);
- CHECK_ATTRIBUTE2 (foreground, "fgcolor");
+ CHECK_ATTRIBUTE2(foreground, "fgcolor");
+
+ CHECK_ATTRIBUTE (font_features);
break;
case 's':
CHECK_ATTRIBUTE (size);
@@ -1142,7 +1145,7 @@ span_parse_func (MarkupData *md G_GNUC_UNUSED,
break;
default:
CHECK_ATTRIBUTE (background);
- CHECK_ATTRIBUTE2 (background, "bgcolor");
+ CHECK_ATTRIBUTE2(background, "bgcolor");
CHECK_ATTRIBUTE2(foreground, "color");
CHECK_ATTRIBUTE (rise);
CHECK_ATTRIBUTE (variant);
@@ -1431,6 +1434,11 @@ span_parse_func (MarkupData *md G_GNUC_UNUSED,
pango_attr_language_new (pango_language_from_string (lang)));
}
+ if (G_UNLIKELY (font_features))
+ {
+ add_attribute (tag, pango_attr_font_features_new (font_features));
+ }
+
return TRUE;
error: