summaryrefslogtreecommitdiff
path: root/pango/pango-attr-list.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-02-07 00:38:47 -0500
committerMatthias Clasen <mclasen@redhat.com>2022-02-13 14:28:05 -0600
commit16b209a5e8abdc2dfed469f043498bf954efd7e0 (patch)
treebb80f060ca726066f09bfd33ebe9c81d0693ef58 /pango/pango-attr-list.c
parent7d656b030db6cb9767cd862c8c115e935f0a2ad5 (diff)
downloadpango-16b209a5e8abdc2dfed469f043498bf954efd7e0.tar.gz
Split off and underline position attribute
Make the 'low' positioning a separate attribute.
Diffstat (limited to 'pango/pango-attr-list.c')
-rw-r--r--pango/pango-attr-list.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pango/pango-attr-list.c b/pango/pango-attr-list.c
index 07e98b68..95e500dd 100644
--- a/pango/pango-attr-list.c
+++ b/pango/pango-attr-list.c
@@ -1138,6 +1138,10 @@ pango_attr_list_from_string (const char *text)
ENUM_ATTR(underline, PangoUnderline, PANGO_UNDERLINE_NONE, PANGO_UNDERLINE_ERROR);
break;
+ case PANGO_ATTR_UNDERLINE_POSITION:
+ ENUM_ATTR(underline_position, PangoUnderlinePosition, PANGO_UNDERLINE_POSITION_NORMAL, PANGO_UNDERLINE_POSITION_UNDER);
+ break;
+
case PANGO_ATTR_STRIKETHROUGH:
BOOLEAN_ATTR(strikethrough, gboolean);
break;