Evas font-engine: Also split on script common.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 30 Jan 2011 10:38:28 +0000 (10:38 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 30 Jan 2011 10:38:28 +0000 (10:38 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@56472 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/engines/common/evas_font_ot.c
src/lib/engines/common/language/evas_language_utils.c

index 3a77afe..c78617e 100644 (file)
@@ -131,7 +131,6 @@ evas_common_font_ot_cutoff_text_props(Evas_Text_Props *props, int cutoff)
          cutoff * sizeof(Evas_Font_OT_Data_Item));
    props->ot_data->items = tmp;
    props->ot_data->len = cutoff;
-
 }
 
 EAPI Eina_Bool
index bd9732b..c630004 100644 (file)
@@ -65,12 +65,12 @@ evas_common_language_script_end_of_run_get(const Eina_Unicode *str,
             tmp = _get_script(*str);
             /* Arabic is the first script in the array that's not
              * common/inherited. */
-            if ((first == EVAS_SCRIPT_UNKNOWN) && (tmp >= EVAS_SCRIPT_ARABIC))
+            if ((first == EVAS_SCRIPT_UNKNOWN) && (tmp >= EVAS_SCRIPT_COMMON))
               {
                  first = tmp;
                  continue;
               }
-            if ((first != tmp) && (tmp >= EVAS_SCRIPT_ARABIC))
+            if ((first != tmp) && (tmp >= EVAS_SCRIPT_COMMON))
               {
                  break;
               }
@@ -102,9 +102,9 @@ evas_common_language_script_end_of_run_get(const Eina_Unicode *str,
 Evas_Script_Type
 evas_common_language_script_type_get(const Eina_Unicode *str)
 {
-   Evas_Script_Type script = EVAS_SCRIPT_COMMON;
+   Evas_Script_Type script = EVAS_SCRIPT_UNKNOWN;
    /* Arabic is the first script in the array that's not a common/inherited */
-   for ( ; *str && ((script = _get_script(*str)) < EVAS_SCRIPT_ARABIC) ; str++)
+   for ( ; *str && ((script = _get_script(*str)) < EVAS_SCRIPT_COMMON) ; str++)
      ;
    return script;
 }