summaryrefslogtreecommitdiff
path: root/src/lib/evas/common/evas_text_utils.c
diff options
context:
space:
mode:
authorAli Alzyod <ali198724@gmail.com>2019-07-18 08:51:28 +0000
committerCedric BAIL <cedric.bail@free.fr>2019-07-29 11:17:35 -0700
commitf7ce771e3243e19f8a12672ea2be752dedccbcf6 (patch)
tree46ea86bbb22e62e5f26af489151c8d145318e98e /src/lib/evas/common/evas_text_utils.c
parent7927023fc7a3aeebbb570f4e5cc0be36b99218c9 (diff)
evas_object_textblock: add support for variation sequences
update font processing to handle variation sequences unicodes to select proper glypg in respect to variation seqences Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9053
Diffstat (limited to '')
-rw-r--r--src/lib/evas/common/evas_text_utils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/evas/common/evas_text_utils.c b/src/lib/evas/common/evas_text_utils.c
index b7cbe1b219..7edc73226d 100644
--- a/src/lib/evas/common/evas_text_utils.c
+++ b/src/lib/evas/common/evas_text_utils.c
@@ -1066,7 +1066,7 @@ _content_create_ot(RGBA_Font_Int *fi, const Eina_Unicode *text,
1066 /* If we got a malformed index, show the replacement char instead */ 1066 /* If we got a malformed index, show the replacement char instead */
1067 if (gl_itr->index == 0) 1067 if (gl_itr->index == 0)
1068 { 1068 {
1069 gl_itr->index = evas_common_get_char_index(fi, REPLACEMENT_CHAR); 1069 gl_itr->index = evas_common_get_char_index(fi, REPLACEMENT_CHAR, 0);
1070 is_replacement = EINA_TRUE; 1070 is_replacement = EINA_TRUE;
1071 } 1071 }
1072 idx = gl_itr->index; 1072 idx = gl_itr->index;
@@ -1172,10 +1172,10 @@ _content_create_regular(RGBA_Font_Int *fi, const Eina_Unicode *text,
1172 _gl = *text; 1172 _gl = *text;
1173 if (_gl == 0) break; 1173 if (_gl == 0) break;
1174 1174
1175 idx = evas_common_get_char_index(fi, _gl); 1175 idx = evas_common_get_char_index(fi, _gl, 0);
1176 if (idx == 0) 1176 if (idx == 0)
1177 { 1177 {
1178 idx = evas_common_get_char_index(fi, REPLACEMENT_CHAR); 1178 idx = evas_common_get_char_index(fi, REPLACEMENT_CHAR, 0);
1179 } 1179 }
1180 1180
1181 fg = evas_common_font_int_cache_glyph_get(fi, idx); 1181 fg = evas_common_font_int_cache_glyph_get(fi, idx);