* Evas textblock: Fixed issue and simplified cursor_geometry_get.
* Evas text: Fixed issue with horiz advance.
+ * Evas text utils: Fixed issue with no-harfbuzz bidi.
2013-01-14 Daniel Willmann
* Fix SIGFPE in evas map update if image is 0.
* Evas textblock: Fixed issue and simplified cursor_geometry_get.
* Evas text: Fixed issue with horiz advance.
+ * Evas text utils: Fixed issue with no-harfbuzz bidi.
return mid;
#else
- return _cutoff;
- (void) props;
+ if (props->bidi_dir == EVAS_BIDI_DIRECTION_RTL)
+ {
+ return props->len - _cutoff - 1;
+ }
+ else
+ {
+ return _cutoff;
+ }
#endif
}
size_t cutoff;
/* Translate text cutoff pos to string object cutoff point */
-#ifdef OT_SUPPORT
_cutoff = evas_common_text_props_index_find(base, _cutoff);
if (_cutoff >= 0)
ERR("Couldn't find the cutoff position. Is it inside a cluster?");
return EINA_FALSE;
}
-#else
- cutoff = (size_t) _cutoff;
-#endif
evas_common_text_props_content_copy_and_ref(ext, base);
if (base->bidi_dir == EVAS_BIDI_DIRECTION_RTL)