Irev-Dev / cadhub

We're out to raise awareness and put CodeCAD on the map. The success of CadHub can be measured by the amount it promotes the use of CodeCAD within the mechanical/manufacturing industry and the strength the CadHub community.
https://cadhub.xyz
GNU General Public License v3.0
316 stars 59 forks source link

Font requests #607

Open metasean opened 2 years ago

metasean commented 2 years ago

Per Teque5's font testing and ranking in the 3d printing realm, it'd be good to see the following fonts added:

Regardless, I'm super stoked to have stumbled across cadhub!

angryseptagon commented 2 years ago

OCR-A and OCR-B are also good aditions in my opinion, they are well known constant thickness monospace fonts that have been in use for decades. I think there are free to use implementations considering their widespread use and history, but I may be wrong.

Irev-Dev commented 2 years ago

Sounds good.

I think the fonts would need to be installed on the docker image for them to be available. https://github.com/Irev-Dev/cadhub/blob/main/app/api/src/docker/openscad/Dockerfile

elasticdotventures commented 2 years ago

I don't understand the nature of this request. What about a package that simply generates the font from TTF or SVG font?

Using RUST crate, import any TTF, output as SVG, then openscad can import SVG and extrude https://docs.rs/ttf-parser/0.15.0/ttf_parser/svg/index.html

Would be nice to be able to access Google Fonts or similar repository (this preview, render font onto surface kind of minutia is the type of place where I think a universal / cross application openSCAD tool browser & font-preview would make sense to me)

t-paul commented 2 years ago

@elasticdotventures This asks for installing the TTF or OTF font. OpenSCAD can read that natively but it needs to be installed on the local system. All google fonts would abount to more than 1GB, so that would likely need some sort of separation, but it's possible. I believe Thingiverse has done that.