RESOLVED INVALID36114
REGRESSION: Some Chinese fonts like MingLiU (新細明體) render incorrectly
https://bugs.webkit.org/show_bug.cgi?id=36114
Summary REGRESSION: Some Chinese fonts like MingLiU (新細明體) render incorrectly
Explorer09
Reported 2010-03-15 07:42:52 PDT
Created attachment 50702 [details] screenshot I'm using Safari 4.0.5 for Windows. (WebKit 531.22.7) See the screenshot I attached. I found that 2 Chinese fonts are rendered incorrectly, both of which are from Microsoft. PMingLiU (新細明體 MingLiU.ttc) DFKai-SB (標楷體 KaiU.ttf) This bug never happens in Safari 4.0.4 or earlier. <!-- HTML tested in the attached screenshot: --> <p style="font-size: xx-large"><span style="font-family: 微軟正黑體;">微軟正黑體</span><br/> <span style="font-family: 新細明體; color: red;">新細明體 12345abcde</span><br/> <span style="font-family: 標楷體; color: red;">標楷體 12345abcde</span><br/> <span style="font-family: Trebuchet MS;">Trebuchet MS</span><br/> <span style="font-family: 華康新儷粗黑;">華康新儷粗黑 12345abcde</span><br/> <span style="font-family: 華康儷粗黑;">華康儷粗黑 12345abcde</span></p>
Attachments
screenshot (45.53 KB, image/png)
2010-03-15 07:42 PDT, Explorer09
no flags
testcase2 (788 bytes, text/html)
2010-03-19 16:50 PDT, Explorer09
no flags
comparison screenshot (62.94 KB, image/png)
2010-03-19 16:50 PDT, Explorer09
no flags
screenshot with newer font version (37.98 KB, image/png)
2010-03-29 08:52 PDT, Explorer09
no flags
font file (DFKai-SB) (2.64 MB, application/x-zip-compressed)
2010-04-03 02:17 PDT, Explorer09
no flags
Explorer09
Comment 1 2010-03-15 07:49:25 PDT
Currently I have a not-so-good workaround: Set the Font Smoothing in the Preferences to "Windows standard".
Alexey Proskuryakov
Comment 2 2010-03-15 11:28:58 PDT
mitz
Comment 3 2010-03-15 11:48:54 PDT
This probably needs to be addressed in Apple’s Core Graphics library.
Explorer09
Comment 4 2010-03-16 04:54:29 PDT
Um... What should I do for now?
Simon Fraser (smfr)
Comment 5 2010-03-18 17:03:38 PDT
Explorer: please attach the test file you're using to generate the screenshot. It would also be useful to see a screenshot with the correct and incorrect rendering side by side.
Explorer09
Comment 6 2010-03-19 16:50:04 PDT
Created attachment 51204 [details] testcase2
Explorer09
Comment 7 2010-03-19 16:50:55 PDT
Created attachment 51205 [details] comparison screenshot
Explorer09
Comment 8 2010-03-19 16:56:05 PDT
I'm too lazy to reinstall the old version, so I attached the screenshot with font smoothing on (above) and with font smoothing off (below).
Simon Fraser (smfr)
Comment 9 2010-03-19 17:02:32 PDT
Could you be more precise about the "render incorrectly"? Does the "comparison screenshot" show the difference between "bad" and "good" rendering, or does only the original screenshot show the "bad" rendering?
Explorer09
Comment 10 2010-03-19 17:07:04 PDT
Yes, in my "comparison screenshot", the window above shows the bad rendering, and the window below shows the good rendering. Also, it seems that the bug only affects CJK Ideographs.
Explorer09
Comment 11 2010-03-19 18:56:10 PDT
I've now downgraded to Safari 4.0.4, but I cannot see it work again.
Explorer09
Comment 12 2010-03-29 08:52:59 PDT
Created attachment 51917 [details] screenshot with newer font version
Explorer09
Comment 13 2010-03-29 08:59:36 PDT
I've done another experiment. After manually upgrading my system fonts, I found that MingLiU and PMingLiU works for font version 6.02 (the version included in Windows Vista). However, DFKai-SB still fails with the latest font version. (5.00 , also included in Windows Vista)
Explorer09
Comment 14 2010-04-03 02:17:24 PDT
Created attachment 52492 [details] font file (DFKai-SB)
mitz
Comment 15 2010-04-22 14:31:02 PDT
(In reply to comment #3) > This probably needs to be addressed in Apple’s Core Graphics library. Further investigation confirmed that this is a regression in the version of Core Graphics that shipped with Safari 4.0.5. Addressing it is outside the scope of WebKit, so I am closing this report. As mentioned above, the issue is tracked by Apple as <rdar://problem/7754643>. Thanks for filing the report!
mitz
Comment 16 2010-06-11 14:27:15 PDT
This is fixed in Safari 5.
Note You need to log in before you can comment on or make changes to this bug.