danmarshall / google-font-to-svg-path

Create an SVG path from a Google font
https://danmarshall.github.io/google-font-to-svg-path
MIT License
734 stars 123 forks source link

Special symbols like this ★ #26

Closed erf closed 2 years ago

erf commented 2 years ago

Would it be possible to add support for special characters like this star ★ ? https://unicode-table.com/en/2605/

Or even emojis like this 💀 ?

I guess it depends if the font supports it?

danmarshall commented 2 years ago

Hi @erf, for font parsing we depend on opentype.js which seems to lack features for special characters. There's quite a few open issues with this library: https://github.com/opentypejs/opentype.js/issues If you know of any other library that supports these symbols please let me know.

erf commented 2 years ago

Hi @danmarshall, i was able to create the star ★ using a few fonts, like "Noto Serif JP" or "Zen Antique", but other symbols were missing.

I saw this other library font-js which might support this?

erf commented 2 years ago

It seem advanced symbols are not supported by either packages per now. I'll close this for now as this seem to be blocked by third party dependencies. Feel free to open again.