[pango] Make line-spacing opt-in
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango] Make line-spacing opt-in
- Date: Fri, 2 Aug 2019 18:42:30 +0000 (UTC)
commit f9119da9749cdda80fa581377e5b3eab0ca8686f
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Aug 2 14:33:43 2019 -0400
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.
pango/pango-layout.c | 4 ++--
1 file 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]