Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: Onwards and Upwards

From: arolls:bigpond:au at: 7-Jun-2001 4:36

Layout some text, convert to an image, then use the inbuilt 90 degree rotation effect to display it sideways. See below.
> Any VID experts got any idea how to render text vertically? I'm trying to > draw a bar chart, and the Y-axis is crying out for text that goes > up rather > than along. > Thanks, > Colin.
;original img: to-image layout [ origin 0x0 space 0x0 H1 "hello there" ] view center-face layout [image img] ; one way - make the face yourself rot-face: center-face make face [ image: img size: reverse img/size ; (width, height) -> (height, width) edge: none effect: [rotate 90] ] view rot-face ; or another way - lay it out with layout view center-face layout [ origin 0x0 image img reverse img/size effect [rotate 270] ] Regards, Anton.