JenniferSimonds / FontDetect

A JavaScript class you can use to determine whether a webfont got loaded, which font is being used by an element, or react to a webfont getting loaded (or failing to load).
MIT License
67 stars 10 forks source link

isFontLoaded doesn't work with fonts that begin with digits #6

Closed JenniferSimonds closed 9 years ago

JenniferSimonds commented 9 years ago

If you try to load a font from a local file, AND the name begins with a digit, AND the file isn't found, then it comes back thinking it was successful.

It works correctly if the filename begins with a letter OR the file is found OR you're loading a nonexistent font from an external source.

This may be related to issue #1.