Skip to content

wention/jquery-fontavailable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

fontAvailable v1.1 jQuery Plugin

Simple jQuery plugin that checks if a client browser supports a given font.

Example

$(document).ready(function() { 
            if($.fontAvailable('tahoma')) { 
                // analytic code here
            }
        }); 
  • make sure to include jQuery framework and plugin source

License

MIT License

References

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)