From b621fe7dd162620c25b60e62dc9793112b308f1c Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 5 Feb 2015 21:32:33 +0100 Subject: Render using pango_cairo_show_glyph_string() rather than pango_cairo_glyph_string_path()/cairo_fill() This seems to finally fix the dodgy font rendering. --- src/render.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/render.c') diff --git a/src/render.c b/src/render.c index 1c24175..37d66e7 100644 --- a/src/render.c +++ b/src/render.c @@ -52,10 +52,9 @@ static void render_glyph_box(cairo_t *cr, struct wrap_box *box) fprintf(stderr, "Box %p has NULL pointer.\n", box); return; } - pango_cairo_glyph_string_path(cr, box->font, box->glyphs); cairo_set_source_rgba(cr, box->col[0], box->col[1], box->col[2], box->col[3]); - cairo_fill(cr); + pango_cairo_show_glyph_string(cr, box->font, box->glyphs); } -- cgit v1.2.3