Evas font-engine: Fixed an issue with cluster handling that broke cursor position...
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 30 Jan 2011 10:37:12 +0000 (10:37 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 30 Jan 2011 10:37:12 +0000 (10:37 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@56460 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/engines/common/evas_font_ot_walk.x
src/lib/engines/common/evas_font_query.c

index 282dc3f..496f830 100644 (file)
                } \
              prev_index = index; \
           } \
-        /* FIXME: clean up */ \
      } \
    while(0)
 
index 758a154..c513b9c 100644 (file)
@@ -300,7 +300,7 @@ evas_common_font_query_char_coords(RGBA_Font *fn, const Eina_Unicode *in_text, c
              if ((intl_props->bidi.dir == EVAS_BIDI_DIRECTION_LTR) &&
                    (EVAS_FONT_WALK_OT_POS <= (size_t) position) &&
                    ((((size_t) position) < EVAS_FONT_WALK_OT_POS_NEXT) ||
-                    (EVAS_FONT_WALK_OT_POS == EVAS_FONT_WALK_OT_POS_NEXT)))
+                    (EVAS_FONT_WALK_OT_IS_LAST)))
                {
                   found = 1;
                   items = EVAS_FONT_WALK_OT_POS_NEXT - EVAS_FONT_WALK_OT_POS;
@@ -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_POS == EVAS_FONT_WALK_OT_POS_PREV)) &&
+                    (EVAS_FONT_WALK_OT_IS_LAST)) &&
                    (((size_t) position) >= EVAS_FONT_WALK_OT_POS))
                {
                   found = 1;
@@ -440,7 +440,7 @@ evas_common_font_query_pen_coords(RGBA_Font *fn, const Eina_Unicode *in_text, co
              if ((intl_props->bidi.dir == EVAS_BIDI_DIRECTION_LTR) &&
                    (EVAS_FONT_WALK_OT_POS <= (size_t) position) &&
                    ((((size_t) position) < EVAS_FONT_WALK_OT_POS_NEXT) ||
-                    (EVAS_FONT_WALK_OT_POS == EVAS_FONT_WALK_OT_POS_NEXT)))
+                    (EVAS_FONT_WALK_OT_IS_LAST)))
                {
                   found = 1;
                   items = EVAS_FONT_WALK_OT_POS_NEXT - EVAS_FONT_WALK_OT_POS;
@@ -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_POS == EVAS_FONT_WALK_OT_POS_PREV)) &&
+                    (EVAS_FONT_WALK_OT_IS_LAST)) &&
                    (((size_t) position) >= EVAS_FONT_WALK_OT_POS))
                {
                   found = 1;