Fix ZWJ, ZWNJ issues 45/264845/10
authorBowon Ryu <bowon.ryu@samsung.com>
Fri, 1 Oct 2021 04:20:55 +0000 (13:20 +0900)
committerBowon Ryu <bowon.ryu@samsung.com>
Wed, 13 Oct 2021 09:44:51 +0000 (18:44 +0900)
commite0c32e06ad760841757337c6344fb515486618b2
treee6b9927b6fe8bc297afc9e6ef12ad530b9389c61
parenta7947e5dc3202ed5da5414b8a8db685c8d422a7b
Fix ZWJ, ZWNJ issues

Current font load logic classifies ZWJ, ZWNJ as COMMON script.
This interrupts them from being combined into one emoji in the EMOJI + ZWJ + EMOJI case.

This patch treats ZWJ, ZWNJ as EMOJI script in this case,
so that they can be loaded with the same color emoji font.

Please refer the example below.
The expected result is to be combined into one emoji character due to ZWJ.
But the actual result is 3 characters rendered.

// example
TextLabel label = TextLabel::New("&#x1f469;&#x200d;&#x1f52c;");

Change-Id: Ic8e921ffcb63c27638afe781527b5c6b90aa92b1
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
automated-tests/src/dali-toolkit/utc-Dali-TextLabel.cpp
dali-toolkit/internal/text/multi-language-support-impl.cpp