From 5ba73113af3790d9f63e492f50d80ad2de226954 Mon Sep 17 00:00:00 2001 From: Brett Nash Date: Tue, 24 Aug 2010 08:14:20 +0000 Subject: [PATCH] Do kerning correctly for word cache. Technically this should speed it up a little. That's a nice change for a bug fix ;-) SVN revision: 51607 --- legacy/evas/src/lib/engines/common/evas_font_draw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/legacy/evas/src/lib/engines/common/evas_font_draw.c b/legacy/evas/src/lib/engines/common/evas_font_draw.c index efc88cff65..ca8fe688cf 100644 --- a/legacy/evas/src/lib/engines/common/evas_font_draw.c +++ b/legacy/evas/src/lib/engines/common/evas_font_draw.c @@ -877,14 +877,14 @@ evas_font_word_prerender(RGBA_Draw_Context *dc, const Eina_Unicode *in_text, Eva ci->fg->glyph->advance.x >> 16 > 0) { if (evas_common_font_query_kerning(fi, ci->index, prev_index, &kern)) - ci->pos.x += kern; + pen_x += kern; } else # endif { if (evas_common_font_query_kerning(fi, prev_index, ci->index, &kern)) - ci->pos.x += kern; + pen_x += kern; } }