Need help with WhatFont-Bookmarklet?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

439 Stars 67 Forks Other 43 Commits 16 Opened issues


The core of WhatFont Tool

Services available


Need anything else?

Contributors list


WhatFont is a JavaScript script to detect what font in the stack is being used on any elements of a web page.

Here in the repo is the core component with out wrappers, the wrapped Chrome/Safari extensions are available at

How to Use

is the core script. It adds
into the global scope. WhatFont then runs in a closure created by the

An controller object is returned by

function. The controller will be used to set up the dependencies (jQuery and stylesheet) and initialize WhatFont.

This controller has the following functions:

  • setJQuery(jQ)

    WhatFont requires jQuery (v1.5.2), if jQuery has already been loaded into the global scope, the script finds it automatically. Otherwise

    needs to be called to set up jQuery object.
  • setCSSURL(url)

    WhatFont injects its stylesheet file into the webpage. The script comes with a default URL setting, if you want to change the setting, calling this function.

  • getVer()

    Return the version of WhatFont.

  • init()

    Initialize WhatFont and inject to the current

  • restore()

    Remove WhatFont from current



wf = _whatFont();       
wf.setjQuery(jQuery);       // Setup jQuery
wf.init();                  // Load WhatFont
wf.restore();               // Remove WhatFont

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.