Closed matthijskooijman closed 2 years ago
@matthijskooijman There's a new pull request which has implemented a new 'text()' function, based on opentype.js. This will become part of the CSG.js library in the very near future.
https://github.com/jscad/csg.js/pull/106
How about trying this out and giving a little feedback to the author?
Here's a small module that shows how to use TTF fonts with JSCAD V2. I think this can be closed now.
It would be useful to support rendering of text into a CAG. Openjscad.org has some code for this that could be used. That does use a hardcoded "font", for more flexibility opentype.js seems promising (it allows uploading a ttf or otf file and then renders a text to a path).