From: tasn Date: Sun, 30 Jan 2011 10:36:53 +0000 (+0000) Subject: Evas font-engine: Fixed an issue with cursor position with RTL text when OT is off. X-Git-Tag: submit/trunk/20120815.174732~2073 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=de331c44479752129e135a32ac52064183d8f206;p=profile%2Fivi%2Fevas.git Evas font-engine: Fixed an issue with cursor position with RTL text when OT is off. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@56457 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 d3df7ec..758a154 100644 --- a/src/lib/engines/common/evas_font_query.c +++ b/src/lib/engines/common/evas_font_query.c @@ -365,7 +365,7 @@ evas_common_font_query_char_coords(RGBA_Font *fn, const Eina_Unicode *in_text, c /* we need to see if the char at the visual position is the char wanted */ if (EVAS_FONT_WALK_DEFAULT_POS == (size_t) position) { - if (cx) *cx = chr_x + EVAS_FONT_WALK_DEFAULT_WIDTH; + if (cx) *cx = chr_x; if (cy) *cy = -asc; if (cw) *cw = chr_w; if (ch) *ch = asc + desc; @@ -523,16 +523,14 @@ evas_common_font_query_pen_coords(RGBA_Font *fn, const Eina_Unicode *in_text, co { if (EVAS_FONT_WALK_DEFAULT_X_ADV > 0) { - if (cpen_x) *cpen_x = pen_x + - EVAS_FONT_WALK_DEFAULT_X_ADV; + if (cpen_x) *cpen_x = pen_x; if (cadv) *cadv = EVAS_FONT_WALK_DEFAULT_X_ADV; } else { if (cpen_x) *cpen_x = pen_x + EVAS_FONT_WALK_DEFAULT_X_OFF + - EVAS_FONT_WALK_DEFAULT_X_BEAR + - EVAS_FONT_WALK_DEFAULT_WIDTH; + EVAS_FONT_WALK_DEFAULT_X_BEAR; if (cadv) *cadv = EVAS_FONT_WALK_DEFAULT_WIDTH; } }