new FontDetector()
A util class to detect if a font is available in browser.
The detection method is borrowed from http://www.lalit.org/lab/javascript-css-font-detect/.
- Source:
Methods
-
(static) detect(fontFamily) → {Bool}
-
Check if a font family is available in browser.
Parameters:
Name Type Description fontFamily
String - Source:
Returns:
- Type
- Bool