[REBOL] Re: Justifying text
From: carl:cybercraft at: 13-Dec-2002 10:25
On 13-Dec-02, Louis A. Turk wrote:
> Hi Rebols,
> Merry Christmas to you all.
Merry Chrristmas Louis!
> Is there an easy way to justify text using rebol/view?
Unfortunately, I don't think there is. You can center and right-align
lines, but that's it as far as I know.
Alignment's stored in the font object...
>> layout [a: area center middle]
>> probe a/font
make object! [
name: "CGTriumvirate"
style: none
size: 12
color: 0.0.0
offset: 2x2
space: 0x0
align: 'center
valign: 'middle
shadow: none
colors: none
]
and the space word there changes the spacing between letters, so that
could possibly be used to give justification. I'd think you'd need
two faces for each line of your text though, which would be possible,
just not easy.
--
Carl Read