In OpenSCAD, I want to be able to create a module
which accepts a string
then create a 3-D object with that string embedded in the surface as a text
. I want the object to be slightly larger than the text
, so I need to know how wide the text
is in order to create a properly-sized object.
I'm not sure how to query the width of the text
(the height is set by an input variable), or if that's even possible.
If it's not possible, is there a function that will accept a string and a font and predict the width of the rendered text?