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

On Fri, Nov 5, 2010 at 10:48 AM, Simon Fraser <> wrote:

> How does the WebFontLoader JS know that fonts are being downloaded,

There's no hook on this other than, we know by a UA sniff that you're in a
supporting browser and we know you're going to use @font-face.

and when the download is complete?

The basic technique is a span injected into the page with a webfont applied,
and polling to watch for dimension changes that will hit when the new
typeface is applied.

I'd like to see a timeout of 3 seconds used, before the text goes from
invisible into the temporary fallback font. It's long enough for the common
user to successfully request the font and apply it, but certainly anything
over 5 seconds is too tough a toll to pay while on mobile or while
downloading rather large fonts.

Received on Saturday, 6 November 2010 08:33:13 UTC