[Webkit-unassigned] [Bug 55453] New: Pass preferred language information down to font fallback logic

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 1 02:57:46 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=55453

           Summary: Pass preferred language information down to font
                    fallback logic
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: kochi at chromium.org
                CC: jshin at chromium.org, agl at chromium.org,
                    kochi at chromium.org


For Chromium on Linux, we don't use any locale information for selecting fallback font (no default or
CSS-supplied font has glyph for those characters).  This often happens especially for CJK pages
with font-family being 'Arial' or any other latin-only fonts.

Sometimes we see fontconfig pick up undesired font (CJK-unified font, which has wrong glyph for
unified character for some language, e.g. 誤's glyphs should be different between C & J)
and it ends up in wrong typeface rendered.

As Chromium/Linux uses fontconfig for selecting a font from character, fontconfig
returns the top result that contains glyph for it, regardless of font-family or language.

At least, we have to pass the language, then with some fontconfig configuration tweaks
we can pick a more appropriate font.

Attaching a patch to implement this, but this requires changes in Chromium code too.
See also http://crosbug.com/11699

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


More information about the webkit-unassigned mailing list