Chlumsky / msdfgen

Multi-channel signed distance field generator
MIT License
3.91k stars 404 forks source link

Expose svg-import.buildFromPath(). #127

Closed pecheny closed 3 years ago

pecheny commented 3 years ago

Since SVG support is limited and in fact msdfgen requires single path description from whole SVG file it would be nice to have library api to take this description exactly. In this case instead of writing SVG transformator-preparator script one can write wrapper to support whole range of cases he needs. (I’m working on svg support for https://github.com/Yanrishatum/fontgen and this commit allows me to extract required path in haxe and pass it to msdfgen)

Chlumsky commented 3 years ago

Ok, but I slightly changed it.

pecheny commented 3 years ago

Thanks!