From 4ff54c2808a50e705baa6d401c75e40e0126a44d Mon Sep 17 00:00:00 2001 From: tasn Date: Sun, 30 Jan 2011 10:36:53 +0000 Subject: [PATCH] Evas font-engine: Fixed an issue with cursor position with RTL text when OT is off. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@56457 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/engines/common/evas_font_query.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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; } } -- 2.7.4