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

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

From: Paul Irish <paul.irish@gmail.com>
Date: Sat, 6 Nov 2010 01:32:10 -0700
Message-ID: <AANLkTi=mq9m0owP8O0yP=fuUfvmL0nCpBNPBX3s6H9zn@mail.gmail.com>
To: Simon Fraser <smfr@me.com>
Cc: Sean McBride <sean@typekit.com>, www-style@w3.org
On Fri, Nov 5, 2010 at 10:48 AM, Simon Fraser <smfr@me.com> 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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:34 GMT