summaryrefslogtreecommitdiff
path: root/src/lib/evas/common
diff options
context:
space:
mode:
authorYoungbok Shin <youngb.shin@samsung.com>2017-09-11 08:52:03 +0300
committerDaniel Hirt <hirt.danny@gmail.com>2017-09-11 08:52:03 +0300
commit7a1075500aec849310e796c191aabff0b31f7c68 (patch)
tree875791e25bc0871d9adf67f798fa6df62c972ebd /src/lib/evas/common
parentb656e82b09074ee867d427f50de23a413170d1e5 (diff)
evas: don't search other fonts only for INHERITED script unicodes
Summary: INHERITED script unicodes are only meaningful when it comes after the previous unicode from same font. Even if there is no glyph for the INHERTED script unicode from current font, don't search other font for loading the unicdoe as first unicode of next item. It will be meaningless. @fix Test Plan: Check the following Emoji sequence with an emoji font which does not have variation selector glyphs. { 0x1F3F3, 0xFE0F, 0x200D, 0x1F308 } Reviewers: raster, cedric, herdsman, jpeg, woohyun Reviewed By: herdsman Differential Revision: https://phab.enlightenment.org/D5156
Diffstat (limited to 'src/lib/evas/common')
-rw-r--r--src/lib/evas/common/evas_font_query.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/evas/common/evas_font_query.c b/src/lib/evas/common/evas_font_query.c
index 081f9a5e54..8fe82dacbb 100644
--- a/src/lib/evas/common/evas_font_query.c
+++ b/src/lib/evas/common/evas_font_query.c
@@ -77,6 +77,12 @@ evas_common_font_query_run_font_end_get(RGBA_Font *fn, RGBA_Font_Int **script_fi
77 * the meanwhile. */ 77 * the meanwhile. */
78 if (*itr <= 0x1F) 78 if (*itr <= 0x1F)
79 continue; 79 continue;
80
81 /* Skip searching font for INHERITED script unicodes.
82 * It is meaningful when only it comes after other unicodes from same font. */
83 if (evas_common_language_char_script_get(*itr) == EVAS_SCRIPT_INHERITED)
84 continue;
85
80 /* Break if either it's not in the font, or if it is in the 86 /* Break if either it's not in the font, or if it is in the
81 * script's font. */ 87 * script's font. */
82 if (!evas_common_get_char_index(fi, *itr)) 88 if (!evas_common_get_char_index(fi, *itr))