aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2014-09-10 18:02:45 +0200
committerThomas White <taw@bitwiz.org.uk>2014-09-10 18:02:45 +0200
commit4b42907b33fa0cb367f05a1497acead1fa1d8dbc (patch)
treea0b3f39f2da84e642fddc31fc70841aff0db8701
parent31e22436e4cb240c3055e01c443c2655271a3e03 (diff)
Sort out line spacing
-rw-r--r--src/render.c2
-rw-r--r--src/wrap.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/render.c b/src/render.c
index f4bcc70..ea6e573 100644
--- a/src/render.c
+++ b/src/render.c
@@ -245,7 +245,7 @@ static void render_lines(struct frame *fr, cairo_t *cr, ImageStore *is,
}
/* FIXME: line spacing */
- y_pos += pango_units_to_double(fr->lines[i].height) + 0.0;
+ y_pos += pango_units_to_double(fr->lines[i].height);
cairo_restore(cr);
diff --git a/src/wrap.c b/src/wrap.c
index 1163bda..79f2930 100644
--- a/src/wrap.c
+++ b/src/wrap.c
@@ -346,6 +346,8 @@ static void calc_line_geometry(struct wrap_line *line)
if ( box->height > line->height ) line->height = box->height;
if ( box->ascent > line->ascent ) line->ascent = box->ascent;
}
+
+ line->height *= 1.07;
}