Closed kingschnulli closed 6 years ago
As I understand, you implemented just parsing, not the rendering mechanism?
Yes this is currently just the parsing part - i tested the output with a simple test script that just draws the parsed svg information into the page. This looks good so far, as there is just a limited set of fonts that have this feature currently I could only test a few.
I wanted to discuss what would be the best way to implement the rendering before adding that.
I already implemented the SVG rendering, I will update it here today.
I just updated the library, I slightly edited your SVG.js (added SVG parsing). Try to open your colored fonts in https://photopea.github.io/Typr.js/ :)
This is awesome, thanks for implementing this part.
Thank you for telling me that such thing exists :D
see https://www.colorfonts.wtf/ and https://www.microsoft.com/typography/otspec/svg.htm
This currently only parses the data, maybe the utilities could add some methods to draw all of this into a canvas context. What do you think?