zalo / CascadeStudio

A Full Live-Scripted CAD Kernel in the Browser
https://zalo.github.io/CascadeStudio/
MIT License
1.01k stars 126 forks source link

Uncaught exception in Text3D on non-ascii chars #19

Closed speters closed 3 years ago

speters commented 3 years ago

Text3D gives an uncaught exception when evaluating a string containing non-ascii characters.

Reproduce at https://zalo.github.io/CascadeStudio/ with Translate([-25, 0, 40], Text3D("Hi äÖ"));

PS: let holeRadius = Slider("Rädiüs", 30 , 20 , 40); prints fine on the user-interface.

zalo commented 3 years ago

It looks like the default font doesn't include those characters, but Roboto does.