Writing text at funny angles

For questions and postings not covered by the other forums
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Writing text at funny angles

Postby ConvertFromOldNGs » Fri Aug 07, 2009 11:42 am

by Carl Ranson >> Thu, 1 Jul 1999 3:58:13 GMT

Hi all,

Occasionally over the last few years I have wanted to write text vertically or at other odd angles.
Untill now this has been in the too hard basket but I managed to find a ms-c demo and translate it into Jade.

Check out the attached partial schema.

you can simply call the routine like this.

window.drawTextAtAngle(100,100, 'This is a test', 900);
window.drawTextAtAngle(150,100, 'This is a test', 2700);
window.drawTextAtAngle(200,200, 'So is This', 330);

If you wish to extend this demo you shoud investigate the LogFont structure.

NB: the angle is in tenths of a degree counter-clockwise from horizontal.

Regards

CR
Turing Solutions Limited.
Attachments
817_1.scm
(3.21 KiB) Downloaded 187 times

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 33 guests