![]() ![]() In this case a web font provider may decide to send WOFF fonts to the device because the real desktop Chrome supports it, while the mobile browser does not. This is especially noticeable on mobile browsers with a "Desktop" mode, which usually identify as Chrome on Linux. The user agent string may claim to support a web font format when it in fact does not. Browser SupportĮvery web browser has varying levels of support for fonts linked via Web Font Loader determines support for web fonts is using the browser's user agent string. If you're using Typekit, you should use their embed codes directly unless you also need to load web fonts from other providers on the same page. The following classes are set on the html element:įYI: Typekit's own JavaScript is built using the Web Font Loader library and already provides all of the same font event functionality. fontinactive - This event is triggered if the font can't be loaded.ĬSS events are implemented as classes on the html element.fontactive - This event is triggered once for each font that renders.fontloading - This event is triggered once for each font that's loaded.inactive - This event is triggered when the browser does not support linked fonts or if none of the fonts could be loaded. ![]()
0 Comments
Leave a Reply. |