A library for putting customised "text on" 3D shapes in OpenSCAD with changeable fonts, languages/scripts, text direction.
Only works with OpenSCAD v 2014.xx and later -- where text() module is added and unicode text is supported. The text module is still an experimental feature in newer releases and must be enabled at run time (--enable=text).
This is a rewrite and extension of the great write.scad (v3 from http://www.thingiverse.com/thing:16193) to use the new OpenSCAD internal text() primitive.
Functions are provided for putting text on:
Text can be unicode charaters and in any font (installed on your system), language (e.g. "en","cn","jp"), script (e.g. "arabic","hiragana"), size and direction ("ttb", "btt", "rtl", "ltr").
There are examples in the /examples directory to get you started. See below for some image renders.
See the top comments section in of text_on.scad for the module definition
The modules use the arguments with the same name as their underlying shapes in order to define the dimensions of the object to put "test_on (e.g. sphere() uses r, so does text_on_sphere() ).
They also expose the arguments of the text() primitive:
And additional arguments:
%sphere(r=15); //Partially visible "base" object
text_on_sphere("Hello World",r=15);
%cylinder(r1=rad1,r2=rad2,h=40); //Partially visible "base" object
text_on_cylinder(t="Text",r1=rad1,r2=rad2,h=40, font="Liberation Mono", direction="ttb", size=5);
The examples in /examples produce the following:
text_on_cube.scad
text_on_font.scad.png
text_on_circle.scad.png
text_on_cylinder.scad.png
text_on_sphere.scad.png
text_extrude.scad
Please fork from at https://github.com/brodykenrick/text_on_OpenSCAD and fix any bugs or add any features and send a pull request.