svgdotjs / svgdom

Straightforward DOM implementation to make SVG.js run headless on Node.js
MIT License
269 stars 53 forks source link

Fix fontkit import #107

Closed duncanmak closed 1 year ago

duncanmak commented 1 year ago

Update fontkit dependency to 2.0.2 and replace the default import of fontkit with a glob.

Fuzzyma commented 1 year ago

What are the breaking changinsg for fontkit 2.0? Does it affect any functionality?

duncanmak commented 1 year ago

I don't think it affected any functionality, but they did drop Node-specific support, as outlined here:

https://github.com/foliojs/fontkit/pull/281

They removed the iconv-lite dependency, which is one of the things I saw in #106