🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #7851

Re: How can I fill text?

#7851
From: Chris Calabrese[mav]
Date: Sat, 21 Jan 1989 00:25
22 lines
1429 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. I guess another way of saying this would be 
> how can I fill text?


This is in the Adobe Blue Book (Adobe Ssytems Incorporated,
PostScript Language Tutorial And Cookbook,
Addison-Wesley, 1985, ISBN 0-201-10179-3)

Page 179 starts Program 12 / A Simple Line Breaking Algorithm,
which give code for a procedure to break lines up
to a given width and show them on the page.
It could be easily modified for much more general use, I'm sure.

Of course, this doesn't fill, but the basics are there.
-- 
Name:			Christopher J. Calabrese
Brain loaned to:	AT&T Bell Laboratories, Murray Hill, NJ
att!ulysses!cjc		cjc@ulysses.att.com
Quote:	``I'm sure Henry Spencer will have a .signature on this soon.''
Technical Details
Message-ID: <11132@ulysses.homer.nj.att.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!attcan!uunet!lll-winken!ncis.llnl.gov!helios.ee.lbl.gov!pasteur!ucbvax!ulysses!cjc
References: <2200001@hpcilzb.HP.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!attcan!uunet!lll-winken!ncis.llnl.gov!helios.ee.lbl.gov!pasteur!ucbvax!ulysses!cjc
From: cjc@ulysses.homer.nj.att.com (Chris Calabrese[mav])
Newsgroups: comp.lang.postscript
Subject: Re: How can I fill text?
Summary: It's in Adobe's Blue Book
Message-ID: <11132@ulysses.homer.nj.att.com>
Date: 21 Jan 89 00:25:50 GMT
References: <2200001@hpcilzb.HP.COM>
Organization: AT&T Bell Laboratories, Murray Hill
Lines: 22