On 5/12/12 10:54, Neil wrote:
John Daggett wrote:

Last time I looked, Webkit caches activated fonts, so the second time
the UA loads the same font (e.g. in a different document) it will be
shown immediately without fallback content first.

Ah, so that explains the fallback flash I experience on a site I
frequent that makes heavy use of a downloaded symbol font. It is irksome
because the fallback content is ASCII text ;-) It's not so bad for other
downloaded fonts as usually the only problem is that the aspect ratio is
wrong so the line wrapping changes once the font loads.

You shouldn't normally see a flash of fallback text unless the font is particularly slow to load; the text should be invisible until the font is available. We aim to hide the text until the font is ready, unless it takes more than a few seconds to load. (The timeout is configurable - see gfx.downloadable_fonts.fallback_delay - so if you've set it lower than the default of 3000ms, you'll see visible fallback more frequently.)

Could you point us to the irksome site? If you're often seeing ASCII fallback, I wonder if there's something unusual about how it's specifying/loading the symbol font.

BTW, in bug 816483 I'm proposing to cache/share the activated fonts across pages, so that when you visit successive pages that use the same fonts, they'll be available immediately.

JK

_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to