From 59e2b1aecfd38e0ca20cfe3e0356346f629e158f Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 5 Jul 2019 00:00:16 +0000 Subject: 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. --- pango/pango-layout-private.h | 1 + 1 file changed, 1 insertion(+) (limited to 'pango/pango-layout-private.h') 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; -- cgit v1.2.1