Curved text possible?

Martin Koob mkoob at rogers.com
Thu Apr 28 11:10:43 EDT 2022


I was thinking that SVG might work as someone else has said.

At first I thought you could create individual files for each letter and number and put the path for a letter into a svg widget which you could rotate or scale.
you would then have to calculate the angle of rotation and location of each svg widget on a path.   But then when I tried rotating the svg widget its scale would change as it rotated because the bounds of the rect were changing. Then you would have to calculate the scale depending on the rotation angle and that seemed a bit much.

I also thought you could import the svg file as an image and perhaps that would not have the odd behaviour when rotating.  I did not try that though.

Then I found this.

https://css-tricks.com/snippets/svg/curved-text-along-path/ <https://css-tricks.com/snippets/svg/curved-text-along-path/>

it shows how to use css to put text along a SVG path.  At the LiveCode Dev Con there were a few unconventional uses of the browser widget beyond displaying webpages that add features that can add features that LiveCode does not have natively.  So I thought maybe this is one of them.  So what I thought could be done is display the above in a browser widget or,  If you did not want to show the browser widget, use the browser widget to render the curved text, thentake a snapshot of the rendered text and then show that in an image.

Not sure if it will work but the sessions at the conference have really got me thinking of new ways to leverage the technology in that widget.

Martin Koob

> On Apr 27, 2022, at 12:47 PM, doc hawk via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> I looked at this some years ago.  I forget why I wanted to do it (a logo, perhaps?).
> 
> My conclusion was that the best way would be to write it as either eps or postscript.  
> 
> This gives you something that can be trivially rotated without loss, but the catch is that you have to then feed it to an external program to concert it to something that livecode can display (png, jpg, whatever).
> 
> I decided that it wasn’t worth the effort,.
> 
> At the time, eps was still included in the documentation, but I think the last platforms livecode actually supported eps on were NeXT and Sunos
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode



More information about the use-livecode mailing list