From 64bfe797b12b3095a0ac6bfc58034756600c1b9d Mon Sep 17 00:00:00 2001 From: tasn Date: Sun, 30 Jan 2011 10:37:18 +0000 Subject: [PATCH] Evas font-engine: Fixed pen/char query. In RTL first is actually the last. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@56461 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/engines/common/evas_font_query.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/engines/common/evas_font_query.c b/src/lib/engines/common/evas_font_query.c index c513b9c..0425d6b 100644 --- a/src/lib/engines/common/evas_font_query.c +++ b/src/lib/engines/common/evas_font_query.c @@ -315,7 +315,7 @@ evas_common_font_query_char_coords(RGBA_Font *fn, const Eina_Unicode *in_text, c } else if ((intl_props->bidi.dir == EVAS_BIDI_DIRECTION_RTL) && ((EVAS_FONT_WALK_OT_POS_PREV > (size_t) position) || - (EVAS_FONT_WALK_OT_IS_LAST)) && + (EVAS_FONT_WALK_OT_IS_FIRST)) && (((size_t) position) >= EVAS_FONT_WALK_OT_POS)) { found = 1; @@ -455,7 +455,7 @@ evas_common_font_query_pen_coords(RGBA_Font *fn, const Eina_Unicode *in_text, co } else if ((intl_props->bidi.dir == EVAS_BIDI_DIRECTION_RTL) && ((EVAS_FONT_WALK_OT_POS_PREV > (size_t) position) || - (EVAS_FONT_WALK_OT_IS_LAST)) && + (EVAS_FONT_WALK_OT_IS_FIRST)) && (((size_t) position) >= EVAS_FONT_WALK_OT_POS)) { found = 1; -- 2.7.4