From: tasn Date: Tue, 5 Oct 2010 14:05:23 +0000 (+0000) Subject: Evas textblock and font engine: Fixed cursor position to be at the end of the current... X-Git-Tag: 2.0_alpha~240^2~1423 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e70fce2a3193e93a3ff3ed1564db402752983804;p=framework%2Fuifw%2Fevas.git Evas textblock and font engine: Fixed cursor position to be at the end of the current item, and not the end of the line, this looks nicer in bidi strings. Fixed querying char coords to return the current position of the NULL according to the text's alignment, not the paragraph's. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@53061 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 175a369..b80fe61 100644 --- a/src/lib/engines/common/evas_font_query.c +++ b/src/lib/engines/common/evas_font_query.c @@ -384,8 +384,7 @@ evas_common_font_query_char_coords(RGBA_Font *fn, const Eina_Unicode *in_text, c /* if it's rtl then the location is the left of the string, * otherwise, the right. */ #ifdef BIDI_SUPPORT - if (intl_props && - EVAS_BIDI_PARAGRAPH_DIRECTION_IS_RTL(intl_props->props)) + if (evas_bidi_is_rtl_char(intl_props, 0)) { if (cx) *cx = 0; if (ch) *ch = asc + desc;