css-font-rendering icon indicating copy to clipboard operation
css-font-rendering copied to clipboard

Allow web developers to revive a font that didn't made it in time

Open KenjiBaheux opened this issue 11 years ago • 2 comments

From http://lists.w3.org/Archives/Public/www-style/2014Oct/0524.html

"In other words, when a "swap" or "optional" font doesn't come in before the timeout, it gets an "inactive" bool set on it, which makes the current page treat it as not usable. [...](This bit of extra state should be exposed on the FontFace object, so you can always turn the font on manually if you want, via script.)"

KenjiBaheux avatar Nov 28 '14 04:11 KenjiBaheux

Just making sure I understand this correctly.. We're talking about a new boolean value on a font-family, that I can toggle from JS? So, if swap timeout expires the font is loaded but bool is false, and I can toggle it to be true -- correct? Does this also mean I can toggle an active font-family off and cause the page to rerender all the text with fallback? (Not sure why I'd do that, but hey.. :))

igrigorik avatar Dec 08 '14 17:12 igrigorik

I imagine so. Although the main use case would probably be "I want to understand what happened to my fonts in the end".

KenjiBaheux avatar Mar 18 '15 04:03 KenjiBaheux