css-font-rendering
css-font-rendering copied to clipboard
Allow web developers to revive a font that didn't made it in time
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.)"
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.. :))
I imagine so. Although the main use case would probably be "I want to understand what happened to my fonts in the end".