jQuery Plugin To Detect If A Font Is Installed - fontAvailable

jQuery Plugin To Detect If A Font Is Installed - fontAvailable
File Size: 3.27 KB
Views Total: 295
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

fontAvailable is a jQuery plugin that checks if a font is installed on your computer and execute a custom function when it is available in the current browser.

How to use it:

1. Download the plugin and then insert the jquery.fontavailable-1.1.js after the jQuery library is loaded.

<script src="http://code.jquery.com/jquery.min.js"></script>
<script src="jquery.fontavailable-1.1.js"></script>

2. Execute a custom function when a specified font family is usable in your browser.

if($.fontAvailable('roboto')) { 
  alert('Supported!');
}

This awesome jQuery plugin is developed by wention. For more Advanced Usages, please check the demo page or visit the official website.