notofonts / kannada

Noto Kannada
SIL Open Font License 1.1
1 stars 1 forks source link

Noto Sans Kannada and Noto Serif Kannada: ZWJ not working as expected after {U+0CB0, U+0CCD} #1

Closed MayuraVerma closed 2 years ago

MayuraVerma commented 7 years ago

I am not sure if this is Noto Sans Kannada defect in Chrome on Mac or if this is Chrome issue or harfbuzz issue.

There seems to be an issue with "ZERO WIDTH JOINER" and "\u0cb0\u0ccd" combination. \u0cb0\u0ccd\u200d\u0c95

incorrect display in chrome incorrect display in chrome

correct display in ms word correct display in ms word

Check the below text in chrome and comparing it with Microsoft word.

ರ್‍ಕ ರ್‍ಖ ರ್‍ಗ ರ್‍ಘ ರ್‍ಙ ರ್‍ಚ ರ್‍ಛ ರ್‍ಜ ರ್‍ಝ ರ್‍ಞ ರ್‍ಟ ರ್‍ಠ ರ್‍ಡ ರ್‍ಢ ರ್‍ಣ ರ್‍ತ ರ್‍ಥ ರ್‍ದ ರ್‍ಧ ರ್‍ನ ರ್‍ಪ ರ್‍ಫ ರ್‍ಬ ರ್‍ಭ ರ್‍ಮ ರ್‍ಯ ರ್‍ರ ರ್‍ಱ ರ್‍ಲ ರ್‍ವ ರ್‍ಶ ರ್‍ಷ ರ್‍ಸ ರ್‍ಹ ರ್‍ಳ ರ್‍ೞ

Weblink to see the issue live: https://en.wikipedia.org/wiki/Kannada_alphabet

MayuraVerma commented 7 years ago

Apple Pages has the same issue. (Coretex)

Google Chrome has this the same issue. (Harfbuzz)

MS Word 2016 (mac version) doesn't have this issue. (Don't know what they use)

screen shot 2016-10-11 at 7 26 10 pm

In the image. Top window is MS word 2016, Bottom window is Pages.

jungshik commented 7 years ago

@MayuraVerma Just to make sure, you used the same font (Noto Sans Kannada) in both MS Word 2016(mac) and Apple Page/Chrome in your screenshot, didn't you?

@TidharC can you test sample sequences in this bug given with the latest harfbuzz (from github)? If it still has this issue, a bug has to be filed against HarfBuzz.

@behdad @brawer

MayuraVerma commented 7 years ago

@jungshik In the above example, I had used "Noto Serif Kannada", but this is the same case with "Noto Sans Kannada"

Re-phrasing the issue: Both Noto Sans Kannada and Noto Serif Kannada has problem rendering "ರ್‍ಕ ರ್‍ಖ ರ್‍ಗ ರ್‍ಘ ರ್‍ಙ ರ್‍ಚ ರ್‍ಛ ರ್‍ಜ ರ್‍ಝ ರ್‍ಞ ರ್‍ಟ ರ್‍ಠ ರ್‍ಡ ರ್‍ಢ ರ್‍ಣ ರ್‍ತ ರ್‍ಥ ರ್‍ದ ರ್‍ಧ ರ್‍ನ ರ್‍ಪ ರ್‍ಫ ರ್‍ಬ ರ್‍ಭ ರ್‍ಮ ರ್‍ಯ ರ್‍ರ ರ್‍ಱ ರ್‍ಲ ರ್‍ವ ರ್‍ಶ ರ್‍ಷ ರ್‍ಸ ರ್‍ಹ ರ್‍ಳ ರ್‍ೞ", Text Reference: https://en.wikipedia.org/wiki/Kannada_alphabet

Failed with Noto Sans/Serif Kannada:

  1. Chrome on mac with noto fonts (Harfbuzz)
  2. Pages in mac OS Sierra (Core Text)

Passed with Noto Sans/Serif Kannada:

  1. MS Word 2016 (mac version), I am not sure if MS Word 2016 mac version uses DirectWrite.

Failed

  1. Chrome on Windows 7 with default font, I am not sure if Chrome on Win7 uses DirectWrite or Harfbuzz and Default font for Kannada in Windows 7.

If somebody can please file the bugreport to Apple as well. I can do it as user. Apple ignores it. If somebody from this team can file and get traction on the Core Text team. It will be great.

jungshik commented 7 years ago

@MayuraVerma can you test on Windows 7 with IE 11? BTW, Chrome on Windows uses HarfBuzz.

BTW, if you have Windows 10, testing on WIndows 10 with Edge would be nice, too. When testing on Windows, it'd be nice to use Noto {Sans, Serif} Kannada. After installing the fonts, you can either make a simple html page to explicitly set the font or use DOM inspector to change fonts in an existing page (e.g. Wikipedia).

roozbehp commented 7 years ago

This may or may not be a bug. See discussions in https://github.com/behdad/harfbuzz/issues/341

jungshik commented 7 years ago

I put up a test page at http://jungshik.github.io/noto/kannada/bug763.html (it uses Web fonts so that nothing need to be downloaded).

MayuraVerma commented 7 years ago

@jungshik this is with windows 7 and IE 11 It seem to have any issue displaying text. capture2

I will check with windows 10 and edge in the evening.

jungshik commented 7 years ago

Thanks, @roozbehp, for the reference to a harfbuzz bug. It looks like there's not much do on the font side. Is there?

@MayuraVerma Thanks for the screenshot. So, IE 11 on Win 7 behaves like MS Word (, which is not always the case). Anyway, this had better be dealt with in behdad/harfbuzz#341 .

MayuraVerma commented 7 years ago

@jungshik Now the wiki page https://en.wikipedia.org/wiki/Kannada_alphabet#Consonant_Conjuncts looks fine after swapping "U+0ccdU+200d" to "U+200dU+0ccd"

Wiki Page was encoded incorrectly. But I wondered how the reverse sequence also worked for MS Word!

nizarsq commented 4 years ago

This issue resolved on Chrome/mac (NotoSans/Serif Kannada).

Screen Shot 2020-06-18 at 12 40 14 AM Screen Shot 2020-06-18 at 12 40 21 AM
nizarsq commented 4 years ago

Unfortunately I don't have access to Word (mac version) to test the current rendering

SKing-2003 commented 2 years ago

This seems to be fixed on the latest versions of harfbuzz.

MayuraVerma commented 2 years ago

Thank you. This is not a font issue. Thanks for closing issue.