🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #6691

Re: How2 wrap 8 text-lines in *.ps?

#6691
From: Rod Dorman
Date: Tue, 27 Sep 2011 18:44
30 lines
2304 bytes
In article <j5scc5$pak$1@dont-email.me>,
NoHtmlMailsPlease <UsePlainText@dog.edu> wrote:
>"Rod Dorman" <rodd@panix.com> wrote in message 
>news:j5ildf$cgu$1@reader1.panix.com...
>>  ...
>> There isn't any concept of "next line" in PostScript.
>
>My brief look at the docus suggests that <newLine> could be programmed as:
>/Nline <decr y-coordinate per font size>
>  <move abs x-coordinate to line-start> def

Define what you mean by "per font size". Is that something your
PostScript emitting program is tracking or are you expecting the
PostScript RIP to somehow figure it out for you?

Consider a "line" that starts off with a 16 point high ornamental
character EPS followed by a mix of 12 point Helvetica and 10 point
Palatino-Bold characters.

You'll need to "decr y-coordinate" by at least 16 points (probably a
little more to avoid decenders) before emitting the PostScript code
for that "line".

In PostScript you first position the baseline before drawing the text
which means you have to figure out how tall that line is going to be
before you can do the move.

-- 
					-- Rod --
rodd(at)polylogics(dot)com
Technical Details
Message-ID: <j5t5iv$lb7$1@reader1.panix.com>
Path: arc1-ca.pugleaf.net!lh7ni6124pbb.0!nntp.google.com!news1.google.com!newsfeed2.dallas1.level3.net!news.level3.com!panix!not-for-mail
References: <j5ifr2$m3c$2@dont-email.me> <j5ildf$cgu$1@reader1.panix.com> <j5scc5$pak$1@dont-email.me>

Show Full Headers
Complete Article Headers
X-Google-Thread: f62f2,50f6ec7dd07cdf25
X-Google-NewGroupId: yes
X-Google-Thread: 10c61a,50f6ec7dd07cdf25
X-Google-NewGroupId: yes
X-Google-Attributes: gid6e8da05f58,gidf3b2fcbfdb,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Received: by 10.68.27.230 with SMTP id w6mr729101pbg.3.1317149088243;
        Tue, 27 Sep 2011 11:44:48 -0700 (PDT)
MIME-Version: 1.0
Path: arc1-ca.pugleaf.net!lh7ni6124pbb.0!nntp.google.com!news1.google.com!newsfeed2.dallas1.level3.net!news.level3.com!panix!not-for-mail
From: rodd@panix.com (Rod Dorman)
Newsgroups: comp.lang.postscript,adobe.postscript.programming
Subject: Re: How2 wrap 8 text-lines in *.ps?
Date: Tue, 27 Sep 2011 18:44:47 +0000 (UTC)
Organization: Public Access Networks Corp.
Lines: 30
Message-ID: <j5t5iv$lb7$1@reader1.panix.com>
References: <j5ifr2$m3c$2@dont-email.me> <j5ildf$cgu$1@reader1.panix.com> <j5scc5$pak$1@dont-email.me>
NNTP-Posting-Host: panix3.panix.com
X-Trace: reader1.panix.com 1317149087 21863 166.84.1.3 (27 Sep 2011 18:44:47 GMT)
X-Complaints-To: abuse@panix.com
NNTP-Posting-Date: Tue, 27 Sep 2011 18:44:47 +0000 (UTC)
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)