Calculate SDF from glyph outlines

~~SLOW SLOW SLOW.~~
- [x] Desperately needs a review by somebody more familiar with C++isms than myself.

No longer slow. Thanks @kkaefer!

Ported from https://github.com/mapbox/fontnik/blob/master/lib/sdf.js