notofonts / kannada

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

Noto Serif Kannada - Serious bug #19

Closed MayuraVerma closed 7 years ago

MayuraVerma commented 7 years ago

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. screen shot 2016-10-09 at 12 16 29 pm screen shot 2016-10-09 at 12 18 14 pm screen shot 2016-10-09 at 12 24 05 pm

brawer commented 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?)

screen shot 2016-10-10 at 12 46 54 pm
MayuraVerma commented 7 years ago

@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. kannada noto serif2

I have copied few text below. This is not full list. This could help diagnose the root cause.

ಲ್ಲಿ ಟ್ಸ್ ಳಿ ಡಿ ಮೆ ರಿ ಖ್ಯೆ ಫ್ರಿ ನೆ ಗಿ ಷ್ಟಿ ಯಿಂ ಚೀ ನಿ ಗ್ಲಿ ಷಿ ಗೆ ದ್ವಿ ತೀ ಮಿ ಲಿ ಗಿ ನ್ ಬಿ ಲಿ ನ್ನಿಂ ಲ್ಲಿ ಧಿ ಪೌ ವಿಂ ಡಿ ಟಿ ನಿ ಧಿ

brawer commented 7 years ago

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

screen shot 2016-10-10 at 8 03 33 pm
MayuraVerma commented 7 years ago

@brawer yes. Left is correct, right is incorrect rendering.

jungshik commented 7 years ago

Just in case it's not clear, Chrome on Mac also uses HarfBuzz.
@behdad

brawer commented 7 years ago

@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.

MayuraVerma commented 7 years ago

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

brawer commented 7 years ago

@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.

MayuraVerma commented 7 years ago

@brawer I have latest Windows 10 as bootcamp. I will report by the day (CST).

MayuraVerma commented 7 years ago

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) screen shot 2016-10-11 at 7 49 31 pm

jungshik commented 7 years ago

@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?

MayuraVerma commented 7 years ago

@jungshik

On Windows 7 and chrome: Serif failed marked in RED capture3

On Windows 10 and Chrome: Serif failed screen shot 2016-10-26 at 12 50 13 pm

On Windows 7 and IE 11: Passed capture4

On Windows 10 and Edge: Passed screen shot 2016-10-26 at 12 45 44 pm

On Mac OS X and Safari: Passed screen shot 2016-10-26 at 12 43 28 pm

On Windows 10 and MS Word 2010 in Windows 10 with Noto Serif Kannada, doesn't the problem.

MayuraVerma commented 7 years ago

All screenshots updated.

lianghai commented 7 years ago

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

brawer commented 7 years ago

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.

MayuraVerma commented 7 years ago

This issue is resolved in newer version of harfbuzz. Thanks @behdad @brawer @lianghai @jungshik @roozbehp