Commit d5c3348a authored by Matthias Clasen's avatar Matthias Clasen
Browse files

Fix line heights in improper gravities

Without this, we end up with line height being
zero in gravity north or west. The visible symptom
is that wrapped lines are drawn on top of each
other with line-height != 0.

Affected tests have been updated.

Fixes: #631
parent db4fde57
Pipeline #337330 passed with stages
in 9 minutes and 27 seconds
......@@ -5664,7 +5664,7 @@ pango_layout_line_get_extents_and_height (PangoLayoutLine *line,
}
if (height)
*height = MAX (*height, run_height);
*height = MAX (*height, abs (run_height));
x_pos += run_logical.width;
tmp_list = tmp_list->next;
......
......@@ -15,7 +15,7 @@
0.0
]
},
"comment" : "",
"comment" : "mixed gravity fun",
"text" : "abcdef",
"attributes" : [
{
......@@ -139,7 +139,7 @@
{
"glyph" : 244,
"width" : 19456,
"x-offset" : 34220,
"x-offset" : 14764,
"y-offset" : 3844,
"is-cluster-start" : true,
"log-cluster" : 0
......@@ -147,7 +147,7 @@
{
"glyph" : 272,
"width" : 19456,
"x-offset" : 34220,
"x-offset" : 14764,
"y-offset" : 4280,
"is-cluster-start" : true,
"log-cluster" : 1
......@@ -155,7 +155,7 @@
{
"glyph" : 273,
"width" : 19456,
"x-offset" : 34220,
"x-offset" : 14764,
"y-offset" : 3506,
"is-cluster-start" : true,
"log-cluster" : 2
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment