From 0cd34e54acada1b157e483b472cf20ae6664c568 Mon Sep 17 00:00:00 2001 From: Daniel Zaoui Date: Sun, 7 Apr 2013 15:52:00 +0300 Subject: [PATCH] evas: Fix Evas Object Text when LTR and RTL are used together. When harfbuzz is enabled, RTL text (arabic, hebrew...) is displayed differently if the paragraph begins with or without LTR. The problem was related to the function evas_common_language_script_type_get and a wrong offset given as parameter to this function. Thanks to EunYoung Kim for having found this bug. Signed-off-by: Daniel Zaoui Change-Id: I9e311e4af3f83709c7efe23408d5df295d670504 --- ChangeLog | 5 +++++ NEWS | 1 + src/lib/canvas/evas_object_text.c | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c2f6720..9008fc3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1260,3 +1260,8 @@ * Fixed pixman image wrapping to handle allocated size instead of image size (unless allocated is 0/wrong). + +2013-02-19 Daniel Zaoui + + * Fix Evas_Object_Text when LTR and RTL are used in the same + paragraph. diff --git a/NEWS b/NEWS index 31eba1c..1d550a2 100644 --- a/NEWS +++ b/NEWS @@ -6,6 +6,7 @@ Additions: Fixes: * Fix evas textblock tag parser to respect escaped spaces and escaped single quotes * Fix the line drawing clipping problem on arm gl driver. + * Evas: Fix Evas_Object_Text when LTR and RTL are used in the same paragraph. Evas 1.7.7 diff --git a/src/lib/canvas/evas_object_text.c b/src/lib/canvas/evas_object_text.c index 00d917d..23bddae 100644 --- a/src/lib/canvas/evas_object_text.c +++ b/src/lib/canvas/evas_object_text.c @@ -554,7 +554,7 @@ _evas_object_text_layout(Evas_Object *obj, Evas_Object_Text *o, const Eina_Unico if (tmp_cut > 0) script_len = tmp_cut; - script = evas_common_language_script_type_get(text, script_len); + script = evas_common_language_script_type_get(text + pos, script_len); while (script_len > 0) { -- 2.7.4