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

[REBOL] Re: Justifying text

From: g:santilli:tiscalinet:it at: 16-Dec-2002 12:32

Hi Don, On Sunday, December 15, 2002, 4:48:18 PM, you wrote: DC> When adjusting spacing to make a line of text fit a certain width, it is DC> best with most fonts to increase the letter spacing (tracking) as well DC> as the word spacing. The letter spacing must take account of any kerning DC> pairs in the font. The PDF Maker justifies text this way. DC> If you look at the Postscript code from a DTP program where text has DC> been fully justified, you will see coordinates specified for each DC> character individually. It looks strange to me, since PDF is considered to be a subset of PostScript feature-wise, and PDF allows you to just set the char- and word-spacing. For example, this is a justified line created by PDF Maker: 0.239095357142857 Tw 0.03347335 Tc [(Suppor) -40 (t f) 30 (or custom f) 30 (onts w) 10 (ould definitely require w) 10 (or) -15 (k to be added;) 50 ( justification and r) -15 (ight alignment)] TJ Tw sets the word spacing, Tc the character spacing. The numbers in the text are for kerning. Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amigan -- AGI L'Aquila -- REB: