discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Re: Curved text in an oval plaque?

DE
David Eccles (gringer)
Mon, Aug 12, 2024 1:45 AM

From: Jordan Brown openscad@jordan.maileater.net

Forming the text to a curve makes the picture more complicated - I
didn’t look at the OP’s example, but IV at the bottom of a curve will
put the bottoms of the two letters way far apart.

Quite possibly the only practical remedy is to manually adjust the
spacing until it looks right.

FWIW, I've created my own OpenSCAD font which allows you to do proper
curve mapping of text. It produces 2D polygon point information that
describes the letter forms, which can then be manipulated as desired. As
a particular point of difference, straight lines are represented as many
different points, rather than a start and end point.

https://www.printables.com/model/79350-pointilised-openscad-font

Unfortunately, doing that manipulation requires knowledge about how to
do the transformations, and it's only possible to do this using the
specific font that I have created.

As I've mentioned a few times before, fixing this more generally for
OpenSCAD (i.e. for other fonts) would require a function that takes in a
rendered object and spits out the point information (e.g. polygon or
polyhedron data). Such a function would allow a lot of other complex
manipulations that are hard or impossible without creating a separate
library to duplicate the existing OpenSCAD language that works on
point-level data.

Ngā mihi,

  • David Eccles
From: Jordan Brown <openscad@jordan.maileater.net> > Forming the text to a curve makes the picture more complicated - I > didn’t look at the OP’s example, but IV at the bottom of a curve will > put the bottoms of the two letters way far apart. > > Quite possibly the only practical remedy is to manually adjust the > spacing until it looks right. FWIW, I've created my own OpenSCAD font which allows you to do proper curve mapping of text. It produces 2D polygon point information that describes the letter forms, which can then be manipulated as desired. As a particular point of difference, straight lines are represented as many different points, rather than a start and end point. https://www.printables.com/model/79350-pointilised-openscad-font Unfortunately, doing that manipulation requires knowledge about how to do the transformations, and it's only possible to do this using the specific font that I have created. As I've mentioned a few times before, fixing this more generally for OpenSCAD (i.e. for other fonts) would require a function that takes in a rendered object and spits out the point information (e.g. polygon or polyhedron data). Such a function would allow a lot of other complex manipulations that are hard or impossible without creating a separate library to duplicate the existing OpenSCAD language that works on point-level data. Ngā mihi, - David Eccles