FontChecker 1.0

FontChecker is a highly inventive javascript-based font availability checker that compares the size of two elements to deliver its verdict.



Details

Author
David Walsh
Current version
1.0
GitHub
darkwing/FontChecker
Downloads
1927
Category
Interface
Tags
Report
GitHub Issues

Releases


Dependencies

  • core/1.2.1: *

How to use

FontChecker can be initialized at any time but is generally initialized at the top of the document during the page's normal load. There are no required arguments -- only options.

Javascript

/* initialize */
var fc = new FontChecker();
/* sample usage */
if(fc.check('Comic Sans')) {
    $$('h1').setStyle('font-family','Comic Sans');
}

For specific usage and options, please read the documentation or visit http://davidwalsh.name/js/fontchecker


Discuss

A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.

Found a bug in this plugin? Please report it this repository's Github Issues.

blog comments powered by Disqus