summaryrefslogtreecommitdiff
path: root/pango/pango-layout.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-07-05 00:00:16 +0000
committerMatthias Clasen <mclasen@redhat.com>2019-07-05 15:47:23 -0400
commit59e2b1aecfd38e0ca20cfe3e0356346f629e158f (patch)
treed402a936fa6ee7598b81b8e5c0a2f814f871a331 /pango/pango-layout.h
parent18aba3ac1093f179db53d5f8d7ffc531098d906b (diff)
downloadpango-59e2b1aecfd38e0ca20cfe3e0356346f629e158f.tar.gz
layout: Add line-spacing
If line-spacing is set to a non-zero value, we place lines so that baseline2 = baseline1 + line-spacing * height2 where height2 is the line height of the second line. In this case, we ignore spacing. If line-spacing is set to zero, spacing is applied as before.
Diffstat (limited to 'pango/pango-layout.h')
-rw-r--r--pango/pango-layout.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/pango/pango-layout.h b/pango/pango-layout.h
index 2019a7b5..96155715 100644
--- a/pango/pango-layout.h
+++ b/pango/pango-layout.h
@@ -206,6 +206,11 @@ void pango_layout_set_spacing (PangoLayout *la
int spacing);
PANGO_AVAILABLE_IN_ALL
int pango_layout_get_spacing (PangoLayout *layout);
+PANGO_AVAILABLE_IN_1_44
+void pango_layout_set_line_spacing (PangoLayout *layout,
+ float spread);
+PANGO_AVAILABLE_IN_1_44
+float pango_layout_get_line_spacing (PangoLayout *layout);
PANGO_AVAILABLE_IN_ALL
void pango_layout_set_justify (PangoLayout *layout,
gboolean justify);