CJK font in OpenSCAD

in openscad •  7 years ago 

If you did not hear the OpenSCAD, just go to it home page. 

Now I will introduce how to use CJK font in OpenSCAD. it only load ANSI font by default.

Suppose I key in "你好,World", it will show something like below picture, the first three guys are Chinese, it can't be display correctly. so how to fix this? there are 2 ways.

1) use OpenSCAD's "use" command.

For above example, just put the "use <C:/WINDOWS/Fonts/simkai.ttf>" in the first line, then using it in text function, everything will fine. Enjoy 3d print!

2) if a font you always use it, just put the font file (.ttf) into the font folder of OpenSCAD.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Great post!

Thank you for support!

I am amazed at the number of new fonts that have appeared. I want to create a list of my favorite fonts. Recently a friend of mine showed me a roblox font, and I fell in love. I can't explain why I like it so much. In the future, if I get a chance to choose a font on my passport, I will take Roblox. I think a lot of people would like to choose a font in official documents. Of course, it would cost extra money, but I wouldn't regret it even if they asked for 200 bucks.

Is there a module somewhere for doing vertical text? I'm using macOS.