The Font object has onerror(), not error().
Merge pull request #24 from bemjb/onerrorfix

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