textCylinder - dodgy version for text() around a cylinder

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

textCylinder - dodgy version for text() around a cylinder

MichaelAtOz
Administrator
As we can't get any sizing info for text() objects, it is difficult to manipulate text() around objects.

I wanted to wrap some text() around a cylinder.
I found a technique which is ok for small words and or small segments around larger circumference.
But otherwise doesn't look good at the edges.
You also need to manually manoeuvre the text vertically.
Also rotations around the edge are approx because of the 'blur' at the edges, so also manually adjusted.



This may (eventually) form part of a library... enjoy
textManipulation.scad

If in the future, we can get a size input of a text() letter, then more elaborate/accurate positioning would be possible.
Admin - email* me if you need anything,
or if I've done something stupid...
* click on my MichaelAtOz label, there is a link to email me.

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work.
Obviously inclusion of works of previous authors is not included in the above.


The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out!
Reply | Threaded
Open this post in threaded view
|

Re: textCylinder - dodgy version for text() around a cylinder

peetersm
Why not use the library "write.scad" found here http://www.thingiverse.com/thing:16193
I think the writecylinder() in there does a good job. I've used it with great results.


On Sat, Aug 9, 2014 at 1:18 AM, MichaelAtOz <[hidden email]> wrote:
As we can't get any sizing info for text() objects, it is difficult to
manipulate text() around objects.

I wanted to wrap some text() around a cylinder.
I found a technique which is ok for small words and or small segments around
larger circumference.
But otherwise doesn't look good at the edges.
You also need to manually manoeuvre the text vertically.
Also rotations around the edge are approx because of the 'blur' at the
edges, so also manually adjusted.

<http://forum.openscad.org/file/n9262/textCylinder.jpg>

This may (eventually) form part of a library... enjoy
textManipulation.scad
<http://forum.openscad.org/file/n9262/textManipulation.scad>

If in the future, we can get a size input of a text() letter, then more
elaborate/accurate positioning would be possible.



-----
Unless specifically shown otherwise above, this is in the Public Domain; To the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. This work is published globally via the internet. :)
.s. The `´ key on my keyboard is soradically roblematic when I ress it, reciitating erceived missellings

The TPP is no simple “trade agreement.”   Fight it! http://www.ourfairdeal.org/
--
View this message in context: http://forum.openscad.org/textCylinder-dodgy-version-for-text-around-a-cylinder-tp9262.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
tp3
Reply | Threaded
Open this post in threaded view
|

Re: textCylinder - dodgy version for text() around a cylinder

tp3
peetersm wrote
Why not use the library "write.scad" found here http://www.thingiverse.com/thing:16193
I think the writecylinder() in there does a good job. I've used it with great results.
An updated version of "write.scad" using the new text() feature is available there: https://github.com/brodykenrick/text_on_OpenSCAD

One of the main reasons to add text() was to remove the need to deal with a limited amount of special dxf font files or external converters.
-- Torsten
Reply | Threaded
Open this post in threaded view
|

Re: textCylinder - dodgy version for text() around a cylinder

MichaelAtOz
Administrator
Noting text_on() defaults to monospace, and for any rotations (cylinder/circle) use a mono spaced layout when proportional fonts are specified. (as it must, without input about text() sizes). Note also, it needs update for `text=` v's `t=`.

My code shows proportional text() reasonably when used within its limitations.

(Just pointing out the difference)

Admin - email* me if you need anything,
or if I've done something stupid...
* click on my MichaelAtOz label, there is a link to email me.

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work.
Obviously inclusion of works of previous authors is not included in the above.


The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out!