summaryrefslogtreecommitdiff
path: root/pango/pango-attributes.c
diff options
context:
space:
mode:
Diffstat (limited to 'pango/pango-attributes.c')
-rw-r--r--pango/pango-attributes.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/pango/pango-attributes.c b/pango/pango-attributes.c
index 6568fbf1..019fa79a 100644
--- a/pango/pango-attributes.c
+++ b/pango/pango-attributes.c
@@ -360,6 +360,11 @@ pango_attr_underline_color_new (PangoColor *color)
return pango_attr_color_new (PANGO_ATTR_UNDERLINE_COLOR, color);
}
+PangoAttribute *
+pango_attr_underline_position_new (PangoUnderlinePosition position)
+{
+ return pango_attr_int_new (PANGO_ATTR_UNDERLINE_POSITION, (int)position);
+}
/**
* pango_attr_strikethrough_new:
* @strikethrough: %TRUE if the text should be struck-through