diff options
author | Thomas White <taw@bitwiz.org.uk> | 2014-09-10 18:02:45 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2014-09-10 18:02:45 +0200 |
commit | 4b42907b33fa0cb367f05a1497acead1fa1d8dbc (patch) | |
tree | a0b3f39f2da84e642fddc31fc70841aff0db8701 /src | |
parent | 31e22436e4cb240c3055e01c443c2655271a3e03 (diff) |
Sort out line spacing
Diffstat (limited to 'src')
-rw-r--r-- | src/render.c | 2 | ||||
-rw-r--r-- | src/wrap.c | 2 |
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); @@ -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; } |