Rotate Text

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
darink
Posts: 2
Joined: Thu Sep 26, 2013 7:29 pm

Rotate Text

Post by darink » Thu Sep 26, 2013 7:34 pm

I'm creating a form to be printed that has text going both horizontal and vertical. How can text be rotated?

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Rotate Text

Post by Simon » Thu Sep 26, 2013 9:08 pm

Hi darink,
Welcome to the forums! :)

liveCode does not provide simple text rotation, a method I've seen of doing this is to import a snapshot of the text and rotate the image. This will provide you with the text rotated but not:

T
e
x
t

That, I'm sure could be done with some fancy coding. :)

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Rotate Text

Post by jmburnod » Thu Sep 26, 2013 10:39 pm

Hi darink,
Here is some infos and stack about it
http://forums.runrev.com/phpBB2/viewtop ... eps#p37952

Best regards
jean-Marc
https://alternatic.ch

jwkuehne
Posts: 37
Joined: Wed Nov 28, 2007 3:12 am

Re: Rotate Text

Post by jwkuehne » Thu Jan 02, 2014 6:01 pm

Super Cool - just what I needed. Have never seen the "export snapshot from field "f1" to tVar as png". Not sure what the moderator comment about removing posts is about!

Still, it would be nice to have native rotation that uses the font rendering machinery of your platform, but I'll live.

-John
Research Engineer
McDonald Observatory, Texas

Post Reply