[REBOL] Re: Justifying text
From: carl:cybercraft at: 16-Dec-2002 14:57
On 15-Dec-02, Gregg Irwin wrote:
> Hi Carl,
>> I've had a quick (yeah, right;) go at it, but my approach is
>> different. As I said, I thought of using font/space to
>> padding, as this would only require two faces per line,
>> one per word. Anyway, below is (the slightly
>> bugged) result I've come up with....
> Cool! Not sure how to work around the way /space works though. I'm
> thinking it maps to SetTextCharacterExtra (under Windows) while what
> we really want is something that maps to SetTextJustification that
> tells the drawing functions how much space to add to each *break*
> character when the text is rendered.
Given the different ways justification could be done across different
platforms, I'd guess View adds that spacing itself, as it wouldn't
surprise me if some OSs don't provide a way to do it. That there's
no justification in View at the moment suggests it's not easy to add
and get right on all the platforms View's running on. What's really
needed is the ability edit a justified text-area, which you can't do
with my hack.
--
Carl Read