From 3be7b55459fb43b05b6998f25e79b64d593a93d3 Mon Sep 17 00:00:00 2001 From: Hermann Kraus Date: Sun, 24 Mar 2013 01:01:37 +0100 Subject: [PATCH] Fix position calculation for text in cairo renderer. --- src/cairo_context.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cairo_context.cpp b/src/cairo_context.cpp index 9653531d6..80452bff7 100644 --- a/src/cairo_context.cpp +++ b/src/cairo_context.cpp @@ -450,7 +450,7 @@ void cairo_context::add_text(glyph_positions_ptr pos, set_font_matrix(matrix); set_font_face(manager, glyph.face); - glyph_path(glyph.glyph_index, base + itr->pos); + glyph_path(glyph.glyph_index, base + ~itr->pos); set_line_width(2.0 * glyph.format->halo_radius * scale_factor); set_line_join(ROUND_JOIN); set_color(glyph.format->halo_fill); @@ -474,7 +474,7 @@ void cairo_context::add_text(glyph_positions_ptr pos, set_font_matrix(matrix); set_font_face(manager, glyph.face); set_color(glyph.format->fill); - show_glyph(glyph.glyph_index, base + itr->pos); + show_glyph(glyph.glyph_index, base + ~itr->pos); } }