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

[REBOL] Re: Justifying text

From: nitsch-lists:netcologne at: 15-Dec-2002 14:42

Volker Nitsch wrote:
> Carl Read wrote:
[snip]
>> >> Consider a line of 10 characters that's five pixels short of the width >> you want the line to be. If you set font/space to 1x0, that'd add >> nine pixels to the width of the line, (1 between each character), >> which would make it too wide. >> >> What you need to do is add 1 pixel between the first six characters >> and leave the following four spaces at 0x0 - hence the need for two >> faces. And using two faces means you need padding between them as >> well. >> >> Does that make sense? (: >> >> There's a lot of other ways you could do this I guess, such as a face >> per word and using the padding between them to get the width right, >> but that'd mean much more than two faces per line in most cases. >> > editors shift text with face/para/scroll afaik. /para shared between > faces, remember to clone it
Sorry, gave wrong answer, you split text. lazy as usual, i read "move text" and thought it was usefull. now tried example, nice :)