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.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.h')
-rw-r--r-- | pango/pango-layout.h | 5 |
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); |