Bug 36114 - REGRESSION: Some Chinese fonts like MingLiU (新細明體) render incorrectly
Summary: REGRESSION: Some Chinese fonts like MingLiU (新細明體) render incorrectly
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows XP
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2010-03-15 07:42 PDT by Explorer09
Modified: 2010-06-11 14:27 PDT (History)
2 users (show)

See Also:


Attachments
screenshot (45.53 KB, image/png)
2010-03-15 07:42 PDT, Explorer09
no flags Details
testcase2 (788 bytes, text/html)
2010-03-19 16:50 PDT, Explorer09
no flags Details
comparison screenshot (62.94 KB, image/png)
2010-03-19 16:50 PDT, Explorer09
no flags Details
screenshot with newer font version (37.98 KB, image/png)
2010-03-29 08:52 PDT, Explorer09
no flags Details
font file (DFKai-SB) (2.64 MB, application/x-zip-compressed)
2010-04-03 02:17 PDT, Explorer09
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Explorer09 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>
Comment 1 Explorer09 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".
Comment 2 Alexey Proskuryakov 2010-03-15 11:28:58 PDT
<rdar://problem/7754643>
Comment 3 mitz 2010-03-15 11:48:54 PDT
This probably needs to be addressed in Apple’s Core Graphics library.
Comment 4 Explorer09 2010-03-16 04:54:29 PDT
Um... What should I do for now?
Comment 5 Simon Fraser (smfr) 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.
Comment 6 Explorer09 2010-03-19 16:50:04 PDT
Created attachment 51204 [details]
testcase2
Comment 7 Explorer09 2010-03-19 16:50:55 PDT
Created attachment 51205 [details]
comparison screenshot
Comment 8 Explorer09 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).
Comment 9 Simon Fraser (smfr) 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?
Comment 10 Explorer09 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.
Comment 11 Explorer09 2010-03-19 18:56:10 PDT
I've now downgraded to Safari 4.0.4, but I cannot see it work again.
Comment 12 Explorer09 2010-03-29 08:52:59 PDT
Created attachment 51917 [details]
screenshot with newer font version
Comment 13 Explorer09 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)
Comment 14 Explorer09 2010-04-03 02:17:24 PDT
Created attachment 52492 [details]
font file (DFKai-SB)
Comment 15 mitz 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!
Comment 16 mitz 2010-06-11 14:27:15 PDT
This is fixed in Safari 5.