Rotated Text?
Hakan at Exformedia.se
Hakan at Exformedia.se
Thu Mar 27 03:59:42 EDT 2014
If you want better print result you can scale the textfield first by factor 2 or 4, import a snapshot and then rescale the image. LiveCode will now use the extra data when printing. I’ve tried this code on a button:
on mouseUp
lock screen
put the rect of field 1 into tRect
put the textSize of field 1 into tSize
set the width of field 1 to the formattedWidth of field 1
set the height of field 1 to the formattedHeight of field 1
import snapshot from field 1
set the angle of the last image to 90
set the loc of image 1 to 100,100
set the textSize of field 1 to the textSize of field 1 * 4
set the width of field 1 to the formattedWidth of field 1
set the height of field 1 to the formattedHeight of field 1
import snapshot from field 1
set the resizeQuality of the last image to "best"
set the angle of the last image to 90
put the rect of the last image into tImgRect
repeat with i = 1 to 4
put item i of tImgRect / 4 into item i of tImgRect
end repeat
set the lockloc of the last image to true — important if you want the resize to stick when unlocking screen
set the rect of the last image to tImgRect
set the loc of the last image to 140,100
set the textSize of field 1 to tSize
set the rect of field 1 to tRect
unlock screen
end mouseUp
and if you then print the card you will see a clear difference between the two fields.
You of course need a ”field 1” with some text for it to work ;)
:-Håkan
26 mar 2014 kl. 22:10 skrev prothero at earthednet.org:
> Richmond:
> Thanks! I'm using 14pt fonts, so that is pretty important.
> Best,
> Bill
>
> prothero at earthednet.org
> http://es.earthednet.org
>
> On Mar 26, 2014, at 11:04 AM, Richmond wrote:
>
>> http://forums.runrev.com/viewtopic.php?f=6&t=19764
>>
>> I prefer getting my hands dirty :)
>>
>> Download my 'stuff' at the URL above.
>>
>> Richmond.
>>
>> _______________________________________________
>> 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
>
>
> _______________________________________________
> 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