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)
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>

No differences found