seasick / openscad-web-gui

Web GUI for OpenSCAD, using OpenSCAD WASM

Home Page:https://seasick.github.io/openscad-web-gui/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Invalid font should still render

seasick opened this issue · comments

Describe the bug

When no font is selected in OpenSCAD or a wrong font name, then it defaults to a font that is included with OpenSCAD. The web interface says that it can not get the empty font name.

To Reproduce

linear_extrude(4) text("test", font="asdf");

OpenSCAD renders this without error or warning.
The web application logs WARNING: Can't get font asdf in file input.scad, line 1 and doesn't render anything.

Expected behavior
Renders readable 3d text

I suspect that this might be solvable through font.conf

I added "Liberation Sans:Regular" as default font. It will be loaded during first OpenSCAD run and will now run without error or warning (same as Desktop build).

See e.g. https://seasick.github.io/openscad-web-gui/?https%3A%2F%2Fwww.printables.com%2Fmodel%2F643340-heart-with-customizable-text-openscad