From: tasn Date: Wed, 6 Oct 2010 12:24:14 +0000 (+0000) Subject: Evas font query: query coords should not take bitmap positioning into account. X-Git-Tag: submit/trunk/20120815.174732~2294 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2d2202a8922f10bf7ae2b94cebf03d55cbf0c5a1;p=profile%2Fivi%2Fevas.git Evas font query: query coords should not take bitmap positioning into account. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@53097 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/engines/common/evas_font_query.c b/src/lib/engines/common/evas_font_query.c index b80fe61..be80580 100644 --- a/src/lib/engines/common/evas_font_query.c +++ b/src/lib/engines/common/evas_font_query.c @@ -440,8 +440,8 @@ evas_common_font_query_char_coords(RGBA_Font *fn, const Eina_Unicode *in_text, c last_adv = fg->glyph->advance.x >> 16; } if (kern < 0) kern = 0; - chr_x = ((pen_x - kern) + (fg->glyph_out->left)); - chr_y = (pen_y + (fg->glyph_out->top)); + chr_x = (pen_x - kern); + chr_y = (pen_y); chr_w = fg->glyph_out->bitmap.width + (kern); /* if (text[chr]) */ {