Closed MayuraVerma closed 7 years ago
Thanks for the report! Would you mind copying a few badly rendered Kannada words into this bug, as plaintext? It would help to find out what’s happening.
For example, here’s the word ಕಾನ್ಸೊನಂಟ್ಸ್ in Noto Sans and Noto Serif rendered by FontView. FontView uses the HarfBuzz library for shaping, not CoreText. The red rectangles look different; is this just a stylistic difference between the two fonts, or is one of the renderings broken? (Which one?)
@brawer It is not styling issue. It is 100% rendering issue.
But the same text in "Pages" displayed correctly with Noto Serif Kannada, expect "ನ್ನಾ" glyphs is discontinous.
I have copied few text below. This is not full list. This could help diagnose the root cause.
ಲ್ಲಿ ಟ್ಸ್ ಳಿ ಡಿ ಮೆ ರಿ ಖ್ಯೆ ಫ್ರಿ ನೆ ಗಿ ಷ್ಟಿ ಯಿಂ ಚೀ ನಿ ಗ್ಲಿ ಷಿ ಗೆ ದ್ವಿ ತೀ ಮಿ ಲಿ ಗಿ ನ್ ಬಿ ಲಿ ನ್ನಿಂ ಲ್ಲಿ ಧಿ ಪೌ ವಿಂ ಡಿ ಟಿ ನಿ ಧಿ
@MayuraVerma, thanks so much! Just to confirm, is it correct that ಟ್ಸ್ should be rendered like in the left picture, and the right picture is wrong? (Left is CoreText on macOS 10.12; right picture is HarfBuzz).
@brawer yes. Left is correct, right is incorrect rendering.
Just in case it's not clear, Chrome on Mac also uses HarfBuzz.
@behdad
@MayuraVerma, would you mind checking the image at https://github.com/behdad/harfbuzz/issues/347 and confirm that the “Expected” line is correct? (Please ignore that some glyphs are cut off at the edges, just check the visible part). Thanks for your help — we’re trying to find out if HarfBuzz, CoreText, or the Noto font is broken.
@brawer Yes, the first line is correct.
This might not be affected by CoreText, since this is happening in Chrome but in Pages (Although, Pages has a different issue).
@MayuraVerma, thanks for your confirmation. So either HarfBuzz or CoreText is broken; they should produce the same output when rendering the same string with the same font but currently they don’t.
Does anyone have a way to reproduce this with DirectWrite, ideally on a recent build of Windows 10? I’ll try to get a box but it’ll take me a while.
@brawer I have latest Windows 10 as bootcamp. I will report by the day (CST).
Chrome and MS Word 2010 in Windows 10 with Noto Serif Kannada, doesn't the problem rendering the paragraph in discussion. (I am assumed this is what you needed with DirectWrite)
@MayuraVerma
Chrome and MS Word 2010 in Windows 10 with Noto Serif Kannada, doesn't the problem
Do you mean Chrome and MS Word 2010 on Windows 10 agree with each other and both have the correct shaping ? hmm...
How about this test page? http://jungshik.github.io/noto/kannada/bug759.html
Do Chrome on Windows (or Mac) agree with IE 11 or Edge on WIndows 10? How about Safari on OS X?
@jungshik
On Windows 7 and chrome: Serif failed marked in RED
On Windows 10 and Chrome: Serif failed
On Windows 7 and IE 11: Passed
On Windows 10 and Edge: Passed
On Mac OS X and Safari: Passed
On Windows 10 and MS Word 2010 in Windows 10 with Noto Serif Kannada, doesn't the problem.
All screenshots updated.
Confirmed a HarfBuzz issue. Although we can also make changes in the fonts to avoid this major issue. Please see my comment in: https://github.com/behdad/harfbuzz/issues/347
Added some Kannada test cases to the Unicode text rendering test suite; see output from HarfBuzz and CoreText. If expectations are wrong, send a pull request.
This issue is resolved in newer version of harfbuzz. Thanks @behdad @brawer @lianghai @jungshik @roozbehp
In Mac OS sierra and chrome browser, setting default font to Noto Serif Kannada yields distorted text. But the same webpage with Noto Sans Kannada doesn't distort the text. So, I think it is not "Apple's Core Text Engine" that is causing issue.
Please review.
https://kn.wikipedia.org/wiki/ಆಂಗ್ಲ
I used chrome extension "Advanced Font Settings" to change the default font.