[Webkit-unassigned] [Bug 10874] lang, xml:lang, content-language ignored when choosing fonts

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Nov 14 12:57:16 PST 2007


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





------- Comment #9 from jungshik.shin at gmail.com  2007-11-14 12:57 PDT -------
(In reply to comment #1)
> Do other browsers do this?   What do WinIE and Firefox do?

Firefox has separate font preferences for script/langGroup and it does honor
lang/xml:lang when selecting fonts. If lang/xml:lang is not specified, it falls
back to script/langGroup inferred from charset (that does not always work, but
in many cases, it works more or less).  Of course, documents encoded in
UTF-{8,16,32} (or with a lot of NCRs to represent characters outside the
repertoire of the current charset), this breaks down. For UTF-{8,16,32}, it
falls back to the font for the lang/scriptGroup corresponding to the current
application locale. (its lang/scriptGroup is not optimal being written almost
10 years ago. It'd be done differently if it was to be done today). 

I have a partial patch in that direction, but it's not anywhere near to be
complete.

WebKit currently has only a single set of font preference across all
languages/scripts.  |Settings| in webkit is not expressive enough (because it
does not have a general 'key-value' with or without hierarchy) to have these
font preferences.

font.<script>.serif
font.<script>.sans-serif
font.<script>.monospace

As for Han-disambiguation and Cyrillic-lang dependency, we need to do more than
the above, but the above is a start. 


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