danmarshall / jscad-gallery

🎲⚽🗿 Create a gallery of OpenJSCAD 3D designs
https://danmarshall.github.io/jscad-gallery
MIT License
18 stars 11 forks source link

we should add a font picker as an input type #4

Open 3dpros opened 4 years ago

3dpros commented 4 years ago

see https://github.com/jscad/OpenJSCAD.org/issues/72

danmarshall commented 4 years ago

I'm wondering how we can make a font picker work with the getParameterDefinitions function? Maybe there will need to be an override.

3dpros commented 4 years ago

right now I am trying to get the fonts working as implemented in the https://github.com/ojsc/opentype.jscad library, but I am not sure how to port this over to work as js files rather than jscad. I am fairly new to JS so this may not be hard, any guidance would be super helpful.

Once that is implemented it would be nice to have a way to have a font dropdown

danmarshall commented 4 years ago

Can you try the jscad conversion from the readme: https://github.com/danmarshall/jscad-gallery#if-your-design-is-a-jscad-file