TextKit2 Cursor position with zero width joiner and Kannada letter

Originator:parthakr
Number:rdar://FB9480360 Date Originated:08/09/2021
Status:Open Resolved:
Product:macOS Product Version:11 and 12
Classification:Core Text API Reproducible:Yes
 
In Kannada text combination

ರ, ZWJ, ್, any Kannada consonant, any Kannada vowel diacritics

With presence of ZWJ, cursor position is placed over ರ‍ to the left of the vowel diacritic, except when ರ and vowel diacritics is a precomposed glyph.

Example: Google Noto Sans Kannada

ಅರ‍್ಯಂಕ್ (ರ and vowel diacritics is a precomposed glyph)
ಅರ‍್ಯಾಂಕ್ (ರ and vowel diacritics is NOT a precomposed glyph)
ಅರ‍್ಯಿಂಕ್ (ರ and vowel diacritics is a precomposed glyph)
ಅರ‍್ಯೀಂಕ್ (ರ and vowel diacritics is a precomposed glyph)
ಅರ‍್ಯುಂಕ್ (ರ and vowel diacritics is NOT a precomposed glyph)
ಅರ‍್ಯೂಂಕ್ (ರ and vowel diacritics is NOT a precomposed glyph)
ಅರ‍್ಯೃಂಕ್ (ರ and vowel diacritics is a precomposed glyph)
ಅರ‍್ಯೄಂಕ್ (ರ and vowel diacritics is a precomposed glyph)
ಅರ‍್ಯೆಂಕ್ (ರ and vowel diacritics is a precomposed glyph)
ಅರ‍್ಯೇಂಕ್ (ರ and vowel diacritics is a precomposed glyph)
ಅರ‍್ಯೈಂಕ್ (ರ and vowel diacritics is a precomposed glyph)
ಅರ‍್ಯೊಂಕ್ (ರ and vowel diacritics is a precomposed glyph)
ಅರ‍್ಯೋಂಕ್ (ರ and vowel diacritics is a precomposed glyph)
ಅರ‍್ಯೌಂಕ್ (ರ and vowel diacritics is NOT a precomposed glyph)

Comments

Files

https://drive.google.com/file/d/1K2JkM6KtNJdlVb2ihheIp6CT541AHTKO/view?usp=sharing

or

https://we.tl/t-2W1BOi4QPu


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!