OpenSCAD general discussion Mailing-listView all threads
Those of you using BOSL2's attachment feature may have had a need to attach
not just text to objects, but to other text, or a need to attach objects to
text. Today, BOSL2 can't do that on its own, because it just doesn't have
the geometry dimensions of fonts within OpenSCAD;
models do not today support children.
Last November I ended up needing to augment this behavior for a project,
and ended up cobbling together BOSL2 and fontmetrics, a library that
contains measured font dimensions suitable for knowing what size text will
be produced at.
Now, I've factored this marriage out into its own project for general use,
and it's now available here:
This project provides an
attachable_text3d() module that works pretty
much as you'd expect: given some text, it will measure the dimensions of
that text using
fontmetrics, build a boundary box around where that text
should be, and then construct an attachable 3D model of that text using
Find full documentation on its use, including some of the world's most
boring examples, at
I'm pretty pleased with it! You might find it as useful as I did, and
please feel free to bang on it some. Sing out in the project's Issues if
you have any specific questions.