diff options
author | Thomas White <taw@bitwiz.org.uk> | 2015-02-05 21:32:33 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2015-02-05 21:32:33 +0100 |
commit | b621fe7dd162620c25b60e62dc9793112b308f1c (patch) | |
tree | 9f05b3fb9d81a458f714f691754b1cab8a0460a7 /src/render.c | |
parent | 5a72e79adad04b78400456ff2b85716c7b29c538 (diff) |
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.
Diffstat (limited to 'src/render.c')
-rw-r--r-- | src/render.c | 3 |
1 files changed, 1 insertions, 2 deletions
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); } |