Printing rotated text
Hello list, I have a need to print some text rotated 90degrees counterclockwise. Using this code, nothing is printed. The text is off the viewable page. (defun print1-demo () (let ((printer (capi:current-printer))) (capi:with-print-job (port :printer printer) (format t "transform pre-rotation ~A~%" (gp:graphics-port-transform port)) (gp:with-graphics-rotation (port 1.5707963) ;pi over 2 radians (format t "transform with rotation ~A~%" (gp:graphics-port-transform port)) (gp:draw-string port "Hello World!" 10 250 :font (gp:find-best-font port (gp:make-font-description :family "Arial" :size 10 :weight :bold)) :foreground :black))))) The text output is: transform pre-rotation (1 0 0 1 0 0) transform with rotation (7.54979E-8 1.0 -1.0 7.54979E-8 0.0 0.0) Why are the transform numbers such as they are? I know it is using the origin 0,0 as the point for rotation which is why its rotating off the page. What will translate back into view vertically along the left edge? My preference is to use the point of rotation to be close to what is used in draw-string. Thank you, Ron Lund _______________________________________________ Lisp Hug - the mailing list for LispWorks users lisp-hug@lispworks.com http://www.lispworks.com/support/lisp-hug.html