foliojs / fontkit

An advanced font engine for Node and the browser
1.49k stars 219 forks source link

Replace new Function #180

Closed ArthurClemens closed 4 years ago

ArthurClemens commented 6 years ago

new Function is not allowed on sites with a Content Security Policy (CSP) and sane defaults.

I've included a new unit test to ensure the same return value of Path.toFunction.

devongovett commented 4 years ago

Fixed by #223.