Skip to content

darkwing/FontChecker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Clickables

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

Screenshot

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

About

FontChecker is a highly inventive javascript-based font availability checker.

Resources

Stars

Watchers

Forks

Packages

No packages published