diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-07-05 00:00:16 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-07-05 15:47:23 -0400 |
commit | 59e2b1aecfd38e0ca20cfe3e0356346f629e158f (patch) | |
tree | d402a936fa6ee7598b81b8e5c0a2f814f871a331 /pango/pango-layout-private.h | |
parent | 18aba3ac1093f179db53d5f8d7ffc531098d906b (diff) | |
download | pango-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.h | 1 |
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; |