Pomax / lib-font

This library adds a new Font() object to the JavaScript toolbox, similar to new Image() for images
MIT License
734 stars 72 forks source link

The Font object has onerror(), not error(). #24

Closed bemjb closed 10 years ago

bemjb commented 10 years ago

If measure text is called before the font is loaded, it attempts to output an error message, but it calls the non-existant error method instead of calling onerror. This fixes that call.

Pomax commented 10 years ago

nice, thanks!