From f323171d52c37b97fe06168aec91b33d174b0fb7 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 13 Aug 2013 22:35:30 +0200 Subject: Show spaces (for debugging) --- src/render.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/render.c') diff --git a/src/render.c b/src/render.c index ede41b5..354664d 100644 --- a/src/render.c +++ b/src/render.c @@ -110,6 +110,11 @@ static void draw_outline(cairo_t *cr, struct wrap_box *box) cairo_set_line_width(cr, 0.1); cairo_stroke(cr); + cairo_rectangle(cr, pango_units_to_double(box->width), -asc, + pango_units_to_double(box->sp), asc + desc); + cairo_set_source_rgb(cr, 0.7, 0.4, 0.7); + cairo_fill(cr); + snprintf(tmp, 31, "%lli", (long long int)box->sc_offset); cairo_select_font_face(cr, "Sans", CAIRO_FONT_SLANT_ITALIC, CAIRO_FONT_WEIGHT_NORMAL); -- cgit v1.2.3