This uses my Hershey fonts and function evaluation libraries to provide a module that fits text to an arbitrary surface with arbitrary distortion (i.e., uv mapping). See the demo code in maphershey.scad.
If you want to use this in production, download the latest Hershey and eval libraries from their own pages, rather than relying on the ones bundled in the mapshershey-standalone.scad file.
stylusObject is whatever object you want to draw the letters with (e.g., a small sphere or a cube or a cylinder). The z-axis of the
stylusObject will be oriented outward when the text is rendered.