evas font: Don't pick a script font based on COMMON/UNKNOWN script text 63/170663/1
authorYoungbok Shin <youngb.shin@samsung.com>
Wed, 21 Feb 2018 05:18:23 +0000 (14:18 +0900)
committerYoungbok Shin <youngb.shin@samsung.com>
Wed, 21 Feb 2018 08:33:28 +0000 (17:33 +0900)
commite4306f3f4301a6ddda6998eb33351d7589b5b8dc
treeb1acc90c482a96f2c91dcbbd28c900600440a6fa
parent299063f0f1239a1d335a13663ae2c1585df93a66
evas font: Don't pick a script font based on COMMON/UNKNOWN script text

When there was a COMMON/UNKNOWN script text, Evas picked a script font only for that text.
And when a explicit character was appened to the text, all previous text before new character
would loaded from new script font according to the new character.

Issue Example)
1. [EMOJI] + [SPACE]
   All script is COMMON/UNKNOWN. A script font is selected as "BreezeColorEmoji" font.
   All text will be loaded from "BreezeColorEmoji" font which does not have proper space character.
2. [EMOJI] + [SPACE] + [LATIN "A"]
   A script font is selected as "BreezeSans" font because of LATIN "A" character.
   The emoji characters will be loaded from "BreezeColorEmoji" font.
   But, the space character and LATIN "A" character will be loaded from "BreezeSans" font.

So, this patch fixes to pick a top font as its script font when the given script is not explicit script.

@tizen_fix

Change-Id: I31aeb80f8e8828bb8709d549b7178c83cfcbcd7c
src/lib/evas/common/evas_font_query.c