Simple jQuery plugin that checks if a client browser supports a given font.
$(document).ready(function() {
if($.fontAvailable('tahoma')) {
// analytic code here
}
});
- make sure to include jQuery framework and plugin source
MIT License
http://ajaxian.com/archives/fontavailable-test-to-see-if-a-font-is-usable http://kilianvalkhof.com/2009/css-xhtml/combining-cufon-and-font-face/ http://davidwalsh.name/font-check-plugin (Moo Tools implementation)