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
This commit is contained in:
Brett Nash 2010-08-24 08:14:20 +00:00
parent 4939e163c7
commit 5ba73113af
1 changed files with 2 additions and 2 deletions

View 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;
}
}