javascript - Font-face check from Modernizr -


modernizr detects css3 font-face support.

http://modernizr.com/download/

how source of font-face test outside modernizr?

there's file in repo related test, i'm not sure how use https://github.com/modernizr/modernizr/blob/master/feature-detects/css/fontface.js

that file doesn't seem easy decouple rest of modernizr. in opinion easier go , use modernizr.

you can customize in downloads section in way donwload checks need, if need font-face test, download part.

if reason not want use modernizr, front-end developer called paul irish has done @font-face feature detection more or less looking for. hope helps.


Comments

Popular posts from this blog

Winapi c++: DialogBox hangs when breaking a loop -

vb.net - Font adding using PDFsharp -

javascript - jQuery iScroll clickable list elements while retaining scroll? -