[Tizen] Fix ZWJ, ZWNJ issues 78/265778/1
authorBowon Ryu <bowon.ryu@samsung.com>
Fri, 1 Oct 2021 04:20:55 +0000 (13:20 +0900)
committerBowon Ryu <bowon.ryu@samsung.com>
Thu, 28 Oct 2021 09:00:43 +0000 (18:00 +0900)
commita995feabfdceed564876ae754c14d571b02285c7
tree71283add96e160501ddbf17f5bc12d8d0cc4fdf2
parentbc3933c59153f3e59d22222941be39e5e6551e31
[Tizen] 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