Bug 135976

Summary: Use CSS unicode-range to optimize @font-face downloads
Product: WebKit Reporter: Chris Adams <chris>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: mmaxfield
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
URL: http://chris.improbable.org/experiments/browser/webfonts/universal-noto-sans/

Description Chris Adams 2014-08-15 07:03:47 PDT
http://chris.improbable.org/experiments/browser/webfonts/universal-noto-sans/ has two test cases where the CSS unicode-range property can be used to avoid @font-face downloads when the page does not include characters in the range.

Testing is simple – load one of the testcases and see whether fonts other than the Thai or Armenian font are downloaded:

* http://chris.improbable.org/experiments/browser/webfonts/universal-noto-sans/all-in-one.html
* http://chris.improbable.org/experiments/browser/webfonts/universal-noto-sans/single-name.html

Reported to Apple as rdar://18030068 for iOS
Comment 1 Alexey Proskuryakov 2014-08-15 10:24:21 PDT
Is this a duplicate of bug 42154?
Comment 2 Chris Adams 2014-08-15 11:26:32 PDT
Yeap, duplicate. Not sure how I missed that while searching earlier.

*** This bug has been marked as a duplicate of bug 42154 ***