Bug 103467

Summary: Improve webfonts download algorithm
Product: WebKit Reporter: Kenichi Ishibashi <bashi>
Component: TextAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: mitz, schenney, simon.fraser
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

Description Kenichi Ishibashi 2012-11-27 16:34:32 PST
https://bugzilla.mozilla.org/show_bug.cgi?id=510439#c6 says that Chrome fetches unnecessary webfonts for the following test cases:

- http://people.mozilla.org/~jkew/lazy-fontface-2a.html
font-family list is "Sevillana, Siemreap, GFS Diot".
Sevillana has glyphs for basic Latin so Siemreap and GFS Didot should not be downloaded.

- http://people.mozilla.org/~jkew/lazy-fontface-2b.html
font-family list is "Siemreap, Sevillana, GFS Diot".
Siemreap doesn't have glyphs for basic Latin, so we should download Siemreap first, then download Sevillana. GFS Diot should not be downloaded.

Chrome download all three webfonts for both 2a and 2b.

I confirmed that Safari has the same problem.
Comment 1 Alexey Proskuryakov 2012-11-29 11:05:24 PST
See also: bug 42154.
Comment 2 mitz 2012-11-29 13:30:51 PST
I suspect that this is a regression from <http://trac.webkit.org/r130160>.