Version 3 of Rotate text on a canvas

Updated 2002-05-17 18:33:07

Christian wrote once into c.l.t.:

BLT can create (semi-transparent) bitmaps of text in arbitrary directions

Try the following:

     package require BLT
     ::blt::bitmap compose myNewBitmap "this is a text" \
         -font "Ariel 10 bold" \
         -rotate 90 \
         -justify left
     $myCanvas create bitmap 50 50 -bitmap myNewBitmap \
         -foreground blue \
         -anchor nw \
         ...

This works nicely.


RS: Shouldn't the font rather be called Arial (or Helvetica, for even more platform-independence)?


It's nice on the screen, but less nice on postscript output. Ability to rotate any standard canvas object would be a nice upgrade to Tk. IDG