Bug 169501 - u+0c9c, u+0cbc, u+0cbe combination has issue with core text engine
Summary: u+0c9c, u+0cbc, u+0cbe combination has issue with core text engine
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Text (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Nobody
URL: http://jathisamvada.prajavani.net/fie...
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-03-10 19:02 PST by P K
Modified: 2017-10-19 20:25 PDT (History)
3 users (show)

See Also:


Attachments
Attached screenshot, left Chrome, middle Firefox, Right Safari top, Right Bottom same word with another Open type font (367.47 KB, image/png)
2017-03-10 19:02 PST, P K
no flags Details
Sierra screenshot (31.08 KB, image/png)
2017-03-10 22:09 PST, Alexey Proskuryakov
no flags Details
Iphone screenshot (108.99 KB, image/png)
2017-03-11 02:50 PST, P K
no flags Details
Diff between Tunga and KannadaMN font (127.64 KB, image/png)
2017-03-11 03:16 PST, P K
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description P K 2017-03-10 19:02:51 PST
Created attachment 304115 [details]
Attached screenshot, left Chrome, middle Firefox, Right Safari top, Right Bottom same word with another Open type font

Apple core text engine has trouble rendering above combination. 
Open the below weblinks in Safari in mac.
Same websites in google chrome (harfbuzz) in mac shows no issue rendering this text.

Search 'ಜ಼ಾಕಿರ್' in below website

Tunga webfont:
http://jathisamvada.prajavani.net/field-collection/field-responses/165

u+0c9c, u+0cbc, u+0cbe combination has issue with core text engine
Comment 1 Alexey Proskuryakov 2017-03-10 22:09:19 PST
Created attachment 304135 [details]
Sierra screenshot

This looks different for me in Safari 10.0.3 on macOS 10.12.3, but still not as expected. Adding screenshot.
Comment 2 P K 2017-03-11 02:50:01 PST
Created attachment 304159 [details]
Iphone screenshot
Comment 3 P K 2017-03-11 03:16:56 PST
Created attachment 304161 [details]
Diff between Tunga and KannadaMN font

I think something is different in your browser. It is not loading the webfont "Tunga" which is open type font, but instead loading one of the default system font in mac, "KannadaMN" which is an AAT font.

I don't know why Safari is not loading webfont from the website for you.

Its loading for me in Mac and also in iPhone. If it loading the webfont, then you will sees the issue. The problem is in the Apple CoreText engine working with gpos for open type font.

But I have Tunga font installed on both iPhone and mac. Maybe, thats why it is successfully loading the font.

Let me uninstall and try it.
Comment 4 P K 2017-03-11 03:43:26 PST
The website specifies Tunga (OTF) font but doesn't use webfont. So, if you don't have Tunga font installed on your machine, it will load system default font. In mac, it will load KannadaMN, in iPhone it will load KannadasangamMN.

Both KannadaMN (AAT) and KannadasangamMN (AAT) have long laundry list of issues. I will report them soon.

I have requested the website admin to either add Tunga (OTF) webfont or Google Noto Sans Kannada webfont (OTF), then you will witness same the issue.
Comment 5 Alexey Proskuryakov 2017-03-11 13:20:54 PST
The issue only reproducing with an additional font installed locally would explain the difference of course.
Comment 6 P K 2017-03-11 20:46:37 PST
Here is the webpage with different webfonts
http://kannadafont.blogspot.com/2017/03/case1-u0c9c-u0cbc-u0cbe-combination.html

For open type font: It is Tunga font issue which has issue but not Apple CoreText. Apple CoreText is rendering the open type text correctly.

For AAT: Both KannadaMN and KannadaSangamMN has issues in mac.

Google noto sans Kannada renders the text correctly.
Comment 7 P K 2017-03-15 16:54:41 PDT
The error still persists even with nightly build. 

Please check.

Please fix this in Coretext also, so this issue is resolved system wide for mac OS and iOS.
Comment 8 P K 2017-03-15 19:47:14 PDT
FYI. This issue is system mac OS and iOS.
Comment 10 Radar WebKit Bug Importer 2017-04-10 14:59:39 PDT
<rdar://problem/31542713>
Comment 11 P K 2017-10-19 20:25:54 PDT
Resolved in high sierra n ios 11