[Webkit-unassigned] [Bug 61561] add support for "on demand" webfonts

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jun 13 18:06:11 PDT 2011


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





--- Comment #5 from Brian Stell <bstell at google.com>  2011-06-13 18:06:11 PST ---
Here's what I'm trying to do: just ship the minimum needed by a page and cache for reuse:

* Create a 'base' font by stripping the font of all the character specific data. For Latin fonts the character specific data is about 66% of the font size. For CJK fonts character data is 85-95% of the font size.

* The first time the webfont is used download this 'base' (one time only).

* During layout record all the characters actually used that are not already downloaded.

* Request the data for these new characters.

* Merge the data into the base and redraw.

The initial download will (almost always) be significantly smaller. Subsequent uses will (almost always) be even smaller.

There does not need a concept of 'popular' characters for a given script. The only 'manual' operation is to generate the (page agnostic) base font and character data. Everything else happens automatically.

This is a big win for CJK but it also speeds up 'small uses' like fancy blog titles which only use a few characters from a font.

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