Curved text possible?

Bob Sneidar bobsneidar at iotecdigital.com
Thu Apr 28 11:18:13 EDT 2022


Great ideas Martin. I'm going to grant you an honorary doctorate from the institute of Sly Laboratories. 

Bob S


> On Apr 28, 2022, at 08:10 , Martin Koob via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> 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




More information about the use-livecode mailing list