summaryrefslogtreecommitdiff
path: root/pango/pango-layout-private.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-private.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-private.h')
-rw-r--r--pango/pango-layout-private.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/pango/pango-layout-private.h b/pango/pango-layout-private.h
index 4b5327ee..38e2e196 100644
--- a/pango/pango-layout-private.h
+++ b/pango/pango-layout-private.h
@@ -55,6 +55,7 @@ struct _PangoLayout
int height; /* ellipsize width, in device units if positive, number of lines if negative */
int indent; /* amount by which first line should be shorter */
int spacing; /* spacing between lines */
+ float line_spacing; /* factor to apply to line height */
guint justify : 1;
guint alignment : 2;