From: Philip Aker <philip@vc...> - 2005-02-07 14:44:04
On Monday, Feb 7, 2005, at 02:15 America/Vancouver, Daniel A. Steffen=20
> Begin forwarded message:
>> From: Bill Paxton <paxton@...>
>> Date: Sun Feb 6, 2005 09:26:49 Australia/Sydney
>> To: <tcltkaqua-users@...>
>> Subject: rotated text
>> TclTkAqua is wonderful (congrats and thanks to Daniel Steffen). I=92m=20=
>> using it with an extension to make a plot viewer widget and scalable=20=
>> text and antialiasing are both very useful. But now the issue of=20
>> rotated text arises. Someday perhaps this will show up in Tk, but in=20=
>> the meantime, for TclTkAqua fans it seems natural to want to reach=20
>> around the Tk limitations somehow to use some of the other Aqua=20
>> goodies. Any thoughts on how this might be done?
I've made a start on using rotated text in images in TclOSA 1.0.3. It's=20=
only used in the simplest way as captions for images or to be images=20
themselves in a HIView. I'm using the APIs from CoreGraphics to create=20=
the image (didn't have to do much more than clip from the=20
documentation). It's somewhat hairy to figure out the displacement for=20=
rotated text so it doesn't swing out of the image rectangle but I think=20=
I could upgrade that portion one day if I read up on how transformation=20=
works in CG.
If you have an image, then it can be exported into a format that Tk=20
knows about. You can omit using a HIView but it sure is a pleasant way=20=
to go. One thing I don't have is a proper inversion scheme for when the=20=
image view is used as a button. Currently I just invert the color but=20
the effect is gross. If anyone knows how that is done (like for icon=20
buttons), I'd appreciate to know.
Get latest updates about Open Source Projects, Conferences and News.