[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.
img: to-image layout [
H1 "hello there"
view center-face layout [image img]
; one way - make the face yourself
rot-face: center-face make face [
size: reverse img/size ; (width, height) -> (height, width)
effect: [rotate 90]
; or another way - lay it out with layout
view center-face layout [
image img reverse img/size effect [rotate 270]