mapbox/tilemill — Issue #1339: Corrupted font causes TileMill not to load.
Author: barnaclebarnes
Created: 2012-03-09 09:25:57+00:00
State: open

I installed a font in Mac OS X that had some minor errors. TileMill then failed to load. Console output was:

```
node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^

node.js:134
throw e; // process.nextTick error, or 'error' event on first tick

node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Error: unable to load invalid font file which lacks identifiable family and style name: '/Users/barnaclebarnes/Library/Fonts/fontawesome-webfont.ttf'
at /Applications/TileMill.app/Contents/Resources/node_modules/mapnik/lib/mapnik.js:73:20
at Array.forEach (native)
at Object.register_system_fonts (/Applications/TileMill.app/Contents/Resources/node_modules/mapnik/lib/mapnik.js:71:10)
at Object. (/Applications/TileMill.app/Contents/Resources/node_modules/mapnik/lib/mapnik.js:85:9)
at Module._compile (module.js:411:26)
at Object..js (module.js:417:10)
at Module.load (module.js:343:31)
at Function._load (module.js:302:12)
at require (module.js:355:19)
at Object. (/Applications/TileMill.app/Contents/Resources/node_modules/tilelive-mapnik/lib/mapnik.js:6:14)
```

The app should just skip over an invalid fonts.