3 ms·
In chrome, I'm not seeing the flash warning message. I'm only seeing an endless "Loading your fonts..." I have click-to-play flash enabled. Webfontloader[1] us
by moonboots 14y ago
In chrome, I'm not seeing the flash warning message. I'm only seeing an endless "Loading your fonts..." I have click-to-play flash enabled.
Webfontloader[1] uses javascript to detect whether a specific font is available. They use a hack where they change the font of a piece of text and calculate whether the width has changed, indicating the system is using specified font instead of the default serif or san serif. If you had a large list of fonts, you could filter out the ones the user has.
[1] https://github.com/typekit/webfontloader.git https://github.com/typekit/webfontloader.git
- sushi 14y agoYou'll have to enable flash for the website in order to use it. Since the flash element is hidden you can't click on it to play. I'll check the library and see if I can use it. Being a JS noob I just patched up whatever I could find. I know there is lot of scope for improvement in code.