W3C home > Mailing lists > Public > www-style@w3.org > November 2010

Re: [css-text ] font-size-adjust (was: @font-face and slow downloading)

From: Simon Fraser <smfr@me.com>
Date: Fri, 05 Nov 2010 10:48:20 -0700
Cc: www-style@w3.org
Message-id: <9BB82224-0585-4CBF-B6F3-87E008E87FEE@me.com>
To: Sean McBride <sean@typekit.com>
On Nov 4, 2010, at 5:32 PM, Sean McBride wrote:

> The WebFontLoader code (which Typekit uses) provides font event
> classes that are added to <html> as the fonts are loaded. There are
> global classes (wf-loading, wf-active, wf-inactive) as well as
> font-specific classes (wf-fonfamilyname-n4-loading,
> wf-fonfamilyname-n4-active, wf-fonfamilyname-n4-inactive).
> WebFontLoader also makes these events available in JavaScript through
> callbacks that you can define, which is useful but not as relevant on
> this list.

How does the WebFontLoader JS know that fonts are being downloaded, and when
the download is complete?

Received on Friday, 5 November 2010 17:49:02 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:40 UTC