discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Curved text in an oval plaque?

RW
Raymond West
Tue, Aug 13, 2024 3:42 PM

HI Ken,

Very nice, I'm glad you were able to use the code.  I was looking for
the plaques I made for the  Bristol Society of Model and Experimental
Engineers, (in the UK) around about 1974. I found this one from a few
years later (It's about 3 inches long).   Made using a strigon
pantograph mill engraving into brass sheet. I didn't have the proper
cutters, but I remember that for the bsmee I used a sewing needle, 
ground into a spade bit. Back then, no cnc, but I made patterns maybe
four or five times actual size, and were scaled down by the pantograph.
Even a cardboard pattern was good enough in some instances, since the
errors were also reduced. It was all fixed font on small brass plates
which were traced for the lettering.

For your central logo, I think it would be better to redraw from
scratch, rather than try to tidy up the existing image, but that may
depend on how you are having the plates made.

Best wishes,

Ray

.On 13/08/2024 09:46, Ken via Discuss wrote:

Many thanks Raymond, after a bit of adjustment to suit my oval, your
code has worked exactly as advertised🙂.

I set it up so the text followed the top curve of my oval as closely
as I could, and also gave the character data table a variable to add
to the character space so I could just change one value to move the
text so it was nice and symmetrical in reference to the oval.

Now I just need to tidy up the badge a little....

On 2024-08-13 01:34, Raymond West via Discuss wrote:

I've  more or less completed what I set out to do, position
characters around an oval shape. Obviously  the result, i.e size,
position is not as any one else would want, but the code can be
readily adapted. It will allow precise positioning of characters
around an oval, hoping that the result  'looks right' . However, if
there are restrictions as to size of font and size of oval, then
there can be obvious conflicts.

--
Cheers, Ken
bats059@gmail.com
https://vk7krj.com
https://vk7krj.com/running.html

A baby can be defined as an ego with a noise at one end and a smell at the other.
Your job as parents is to teach them to control all three.
My job as a grandad is to tell you how you are doing it all wrong!


OpenSCAD mailing list
To unsubscribe send an email todiscuss-leave@lists.openscad.org

HI Ken, Very nice, I'm glad you were able to use the code.  I was looking for the plaques I made for the  Bristol Society of Model and Experimental Engineers, (in the UK) around about 1974. I found this one from a few years later (It's about 3 inches long).   Made using a strigon pantograph mill engraving into brass sheet. I didn't have the proper cutters, but I remember that for the bsmee I used a sewing needle,  ground into a spade bit. Back then, no cnc, but I made patterns maybe four or five times actual size, and were scaled down by the pantograph. Even a cardboard pattern was good enough in some instances, since the errors were also reduced. It was all fixed font on small brass plates which were traced for the lettering. For your central logo, I think it would be better to redraw from scratch, rather than try to tidy up the existing image, but that may depend on how you are having the plates made. Best wishes, Ray .On 13/08/2024 09:46, Ken via Discuss wrote: > Many thanks Raymond, after a bit of adjustment to suit my oval, your > code has worked exactly as advertised🙂. > > I set it up so the text followed the top curve of my oval as closely > as I could, and also gave the character data table a variable to add > to the character space so I could just change one value to move the > text so it was nice and symmetrical in reference to the oval. > > Now I just need to tidy up the badge a little.... > > > On 2024-08-13 01:34, Raymond West via Discuss wrote: >> >> I've  more or less completed what I set out to do, position >> characters around an oval shape. Obviously  the result, i.e size, >> position is not as any one else would want, but the code can be >> readily adapted. It will allow precise positioning of characters >> around an oval, hoping that the result  'looks right' . However, if >> there are restrictions as to size of font and size of oval, then >> there can be obvious conflicts. >> > -- > Cheers, Ken > bats059@gmail.com > https://vk7krj.com > https://vk7krj.com/running.html > ---------------------------------------- > A baby can be defined as an ego with a noise at one end and a smell at the other. > Your job as parents is to teach them to control all three. > My job as a grandad is to tell you how you are doing it all wrong! > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email todiscuss-leave@lists.openscad.org
JB
Jordan Brown
Tue, Aug 13, 2024 5:32 PM

From what Jordan says, it sounds like OpenSCAD doesn't even do fine kerning when you directly ask it for text.

Sorry, I was unclear. From a user perspective, yes OpenSCAD does do ligatures and kerning. From an internals point of view, it is not OpenSCAD per se that is doing that processing, but rather a library called Harfbuzz. We pass the string to Harfbuzz, and it gives us back a list of glyphs and positions. Thus, even internally we don’t have the information required to do subtly different processing like kerning on a curve. There might be a “no ligatures” option that we could pass to Harfbuzz, but I don’t know and would have to research.

> From what Jordan says, it sounds like OpenSCAD doesn't even do fine kerning when you directly ask it for text. Sorry, I was unclear. From a user perspective, yes OpenSCAD does do ligatures and kerning. From an internals point of view, it is not OpenSCAD per se that is doing that processing, but rather a library called Harfbuzz. We pass the string to Harfbuzz, and it gives us back a list of glyphs and positions. Thus, even internally we don’t have the information required to do subtly different processing like kerning on a curve. There might be a “no ligatures” option that we could pass to Harfbuzz, but I don’t know and would have to research.
JB
Jordan Brown
Tue, Aug 13, 2024 5:44 PM

[corrected the typo in the inclusion]

I think that is the text I'm using, only problem is in numbers, if en even number like 2.0, it does not print the .0, just the 2.

Yes, that’s a general weakness, that OpenSCAD does not have any mechanism for specifying the format of a number when you translate it to a string.

[corrected the typo in the inclusion] > I think that is the text I'm using, only problem is in numbers, if en even number like 2.0, it does not print the .0, just the 2. Yes, that’s a general weakness, that OpenSCAD does not have any mechanism for specifying the format of a number when you translate it to a string.