summaryrefslogtreecommitdiff
path: root/pango
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-01-23 22:43:24 -0500
committerMatthias Clasen <mclasen@redhat.com>2022-01-25 15:29:16 -0500
commitccc60eb794524b53642e0b94b32ae1c7a1770dce (patch)
tree7a192cac23652b6242ae1988fad2621477b144d4 /pango
parent0dce75d039e411363486978dde39a9b1b7a9b7ed (diff)
downloadpango-ccc60eb794524b53642e0b94b32ae1c7a1770dce.tar.gz
item: Add line spacing to ItemProperties
Diffstat (limited to 'pango')
-rw-r--r--pango/pango-item-private.h1
-rw-r--r--pango/pango-item.c5
2 files changed, 6 insertions, 0 deletions
diff --git a/pango/pango-item-private.h b/pango/pango-item-private.h
index 27e8dd8e..986f8623 100644
--- a/pango/pango-item-private.h
+++ b/pango/pango-item-private.h
@@ -128,6 +128,7 @@ struct _ItemProperties
guint no_paragraph_break : 1;
guint shape_set : 1;
int letter_spacing;
+ int line_spacing;
int absolute_line_height;
double line_height;
PangoRectangle *shape_ink_rect;
diff --git a/pango/pango-item.c b/pango/pango-item.c
index 3595be4f..4705ac4c 100644
--- a/pango/pango-item.c
+++ b/pango/pango-item.c
@@ -404,6 +404,7 @@ pango_item_get_properties (PangoItem *item,
properties->shape_logical_rect = NULL;
properties->line_height = 0.0;
properties->absolute_line_height = 0;
+ properties->line_spacing = 0;
while (tmp_list)
{
@@ -470,6 +471,10 @@ pango_item_get_properties (PangoItem *item,
properties->absolute_line_height = ((PangoAttrInt *)attr)->value;
break;
+ case PANGO_ATTR_LINE_SPACING:
+ properties->line_spacing = ((PangoAttrInt *)attr)->value;
+ break;
+
case PANGO_ATTR_SHOW:
properties->showing_space = (((PangoAttrInt *)attr)->value & PANGO_SHOW_SPACES) != 0;
break;