[Webkit-unassigned] [Bug 18085] font-fallback of Chinese characters

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Sep 7 21:51:29 PDT 2008


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





------- Comment #8 from jungshik.shin at gmail.com  2008-09-07 21:51 PDT -------
Created an attachment (id=23238)
 --> (https://bugs.webkit.org/attachment.cgi?id=23238&action=view)
patch with stub implementations of getGenericFontForScript for
mac,win,gtk,qt,wx

Sorry for the delay. This patch 

1. adds dominantScript to Document. Currently, it's derived from the charset of
a document. This is a fallback. It should come from lang/xml:lang when either
of them is specified. 

2. adds getGenericFontForScript to FontCache. It returns a font for {script,
css_generic} combination. Currently, it's a stub returning emptyAtom.  
(when bug 10874 is fixed, WebPreference and/or Settings can be used in this
method. If not, a port of webkit can put its own implementation).

This method is used in 3 and 4 below. 

It can also be used for per-charset theme (as is done by Firefox and IE). That
is, a font used for, say, button, is different depending on the char. encoding
of a document and/or lang/xml:lang (in case of IE and Firefox). This patch does
not include that. 


3. For each CSS generic family specified in font-family, 'per-script /
per-generic' font is added in addition to 'per-generic (but
across-scripts/languages)' font that is currently added.

4. When no font is specified at all or no CSS generic family is specified,
'per-script' (standard) font is added.


-- 
Configure bugmail: https://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