marella / material-icons

Latest icon fonts and CSS for self-hosting material design icons.
https://marella.github.io/material-icons/demo/
Apache License 2.0
305 stars 36 forks source link

Need to get codepoint for a specific ligature #48

Closed neodescis closed 1 year ago

neodescis commented 1 year ago

Somewhat related to https://github.com/marella/material-icons/issues/32. I now have a need to find the codepoint for a specific icon. Would it be possible to publish codepoints.json in addition to versions.json? I think my other option is to parse the font with fontkit, which seems a bit heavy handed.

neodescis commented 1 year ago

I did end up parsing the font to get the list of codepoints, in a package.json postinstall script. It's not great, but it seems to work!