Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

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

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 Docs
Octocat-spinner-32 Source
Octocat-spinner-32 README.md
Octocat-spinner-32 package.yml
README.md

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

Something went wrong with that request. Please try again.