🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #7873

Re: How can I fill text?

#7873
From: Dick Dunn
Date: Thu, 26 Jan 1989 04:25
14 lines
1174 bytes
In article <2200001@hpcilzb.HP.COM>, cnc@hpcilzb.HP.COM (Chris Christensen) writes:
> Does anyone have a sample of postscript function to fit a string to a box
> of a given size? What I want is for the string to start a new line before
> it goes outside of the box...

Someone already posted the reference to the Adobe-published example.
However, it's probably worth an aside that if you're writing something that
will see a lot of production use, you'd be better off doing the calculation
in the host computer before you send it to the printer--not everything that
*can* be done in PostScript *should* be done there.  It can make a differ-
ence in printing speed.
-- 
Dick Dunn      UUCP: {ncar,nbires}!ico!rcd           (303)449-2870
   ...A friend of the devil is a friend of mine.
Technical Details
Message-ID: <13957@ico.ISC.COM>
Path: arc1-ca.pugleaf.net!utzoo!attcan!cmtl01!matrox!uvm-gen!uunet!lll-winken!ames!ncar!ico!rcd
References: <2200001@hpcilzb.HP.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!cmtl01!matrox!uvm-gen!uunet!lll-winken!ames!ncar!ico!rcd
From: rcd@ico.ISC.COM (Dick Dunn)
Newsgroups: comp.lang.postscript
Subject: Re: How can I fill text?
Summary: not a great idea
Message-ID: <13957@ico.ISC.COM>
Date: 26 Jan 89 04:25:30 GMT
References: <2200001@hpcilzb.HP.COM>
Organization: Interactive Systems Corp, Boulder, CO
Lines: 14