home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / postscri / 6060 < prev    next >
Encoding:
Text File  |  1992-12-22  |  1.9 KB  |  40 lines

  1. Newsgroups: comp.lang.postscript
  2. Path: sparky!uunet!pmafire!news.dell.com!swrinde!zaphod.mps.ohio-state.edu!menudo.uh.edu!sugar!ficc!peter
  3. From: peter@ferranti.com (peter da silva)
  4. Subject: Re: Justifying strings, how??
  5. Message-ID: <id.4D0W.BNH@ferranti.com>
  6. Organization: Xenix Support, FICC
  7. References: <MEYER.92Dec16131125@ibsen.geomatic.no> <1992Dec17.011125.8658@trilithon.mpk.ca.us> <zisk-181292180203@macne003.boston.us.adobe.com>
  8. Date: Mon, 21 Dec 1992 16:34:22 GMT
  9. Lines: 29
  10.  
  11. In article <zisk-181292180203@macne003.boston.us.adobe.com> zisk@adobe.com (Stephen Zisk) writes:
  12. (justification on the printer...)
  13. > This works well, but puts the load onto the PostScript interpreter.
  14.  
  15. <stringwidth> seems to be a cheap operator. 
  16.  
  17. > For tests, short jobs, and personal use, this is fine, but if you
  18. > are writing a driver with performance in mind, you should at least
  19. > consider doing the job on the host.
  20.  
  21. I don't know about that. I've used text-to-Postscript preprocessors, and
  22. even on printers with a cheesy 68000 I've got better results in terms of
  23. page speed letting the printer do this sort of thing. It seems that parsing
  24. Postscript (breaking up numbers, words, etc) is relatively expensive
  25. compared to executing the Postscript code... at least, that's what my
  26. informal timings (printing a sizeable text file in MP, TEXTPS, PPS, and
  27. other front ends) seem to imply.
  28.  
  29. As always, your milage may vary. Run tests both ways and see what happens.
  30.  
  31. Personally, I would prefer it if programs made decisions like this as late
  32. as possible, so I can print a document with a different font (say, my printer
  33. doesn't handle Palatino and the company is too cheap to buy a softfont)
  34. without screwing things up too badly.
  35. -- 
  36. Peter da Silva                                            `-_-'
  37. Ferranti International Controls Corporation                'U` 
  38. Sugar Land, TX  77487-5012 USA
  39. +1 713 274 5180                            "Zure otsoa besarkatu al duzu gaur?"
  40.