[Tizen] Fix ZWJ, ZWNJ issues 98/265798/1
authorBowon Ryu <bowon.ryu@samsung.com>
Fri, 1 Oct 2021 04:20:55 +0000 (13:20 +0900)
committerjoogab.yun <joogab.yun@samsung.com>
Fri, 29 Oct 2021 00:49:28 +0000 (09:49 +0900)
commit739bd21e1305eada461885b3b9af35ac6dea61be
treec8c6439e52dbc45fddb8a44919b5148c29a39e45
parentb2ad2aede4c166b68fce3f992d4912daaa4fbd77
[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