summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-08-02 14:33:43 -0400
committerMatthias Clasen <mclasen@redhat.com>2019-08-02 14:42:17 -0400
commitf9119da9749cdda80fa581377e5b3eab0ca8686f (patch)
treead36dc8da5774e73946afb040af97772b899a717
parent9666f123a4295cf21fb3a9d4ad430217e4a56cb2 (diff)
downloadpango-f9119da9749cdda80fa581377e5b3eab0ca8686f.tar.gz
Make line-spacing opt-in
Default the new line-spacing property to 0, so spacing continues to work. Applications can opt in to the new line-spacing behavior by setting a non-zero value. This should make spacing in the Gimp work again.
-rw-r--r--pango/pango-layout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index 53e39c1b..521f806a 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -191,7 +191,7 @@ pango_layout_init (PangoLayout *layout)
layout->height = -1;
layout->indent = 0;
layout->spacing = 0;
- layout->line_spacing = 1.0;
+ layout->line_spacing = 0.0;
layout->alignment = PANGO_ALIGN_LEFT;
layout->justify = FALSE;
@@ -605,7 +605,7 @@ pango_layout_get_spacing (PangoLayout *layout)
*
* Sets a factor for line spacing.
* Typical values are: 0, 1, 1.5, 2.
- * The default values is 1.
+ * The default values is 0.
*
* If @factor is non-zero, lines are placed
* so that