[Webkit-unassigned] [Bug 17701] New: issue with charset gb2312 causes layout to be broken

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 6 17:54:16 PST 2008


http://bugs.webkit.org/show_bug.cgi?id=17701

           Summary: issue with charset gb2312 causes layout to be broken
           Product: WebKit
           Version: 525+ (Nightly build)
          Platform: PC
               URL: http://www.taobao.com/
        OS/Version: Windows XP
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: WebKit Misc.
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: help.improve.webkit at gmail.com
                CC: help.improve.webkit at gmail.com


I Steps:
Go to
http://www.taobao.com/
Click on 7th tab : "手机数码"

II Issue:
Notice the layout is broken for 2nd and 4th column. The text is aligned in 3
lines instead of 2. 

III Conclusion: What FF and IE do but webkit does not is to infer the language
from the encoding (in this case gb2312) and use a font for that language when
no font is specified (or an only generic css family is specified).

FF and IE have lang/script-based font preferences while webkit currently does
not.

In this particular case, gb2312 implies Simplified Chinese so that FF and IE
use a font for SC unless that font does not cover a character. SC fonts usually
have Latin letters so that they're used to render Latin as well as Chinese.

In case of webkit, it just has global font preferences. With no font specified,
it's Times New Roman so Latin letters are rendered with it. Chinese characters
are not obviously covered so that webkit ends up using Simsun *only* for
Chinese characters. Because Latin glyphs in T-R is wider than those in Simsun,
the layout (that relies on the precise width of rendered text) is broken.

IV Other browsers:
IE7: ok
FF: ok
Opera: not ok

V Nightly tested: 30236


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list