Do kerning correctly for word cache.
authornash <nash@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 24 Aug 2010 08:14:20 +0000 (08:14 +0000)
committernash <nash@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 24 Aug 2010 08:14:20 +0000 (08:14 +0000)
Technically this should speed it up a little.  That's a nice change for a bug
fix ;-)

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@51607 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/engines/common/evas_font_draw.c

index efc88cf..ca8fe68 100644 (file)
@@ -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;
              }
            }