🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #8137

Re: need help with postscript interpreter

#8137
From: David C. Jedlinsky
Date: Thu, 23 Mar 1989 07:27
49 lines
2606 bytes
In article <39629@oliveb.olivetti.com> koo@orc.olivetti.com (Richard Koo) writes:
>I got the postscript interpreter from an comp.sources.unix archive
>site and have been trying to get it working on my sun 3/60 (which runs
>X11).  I have two problems so far and would appreciate some pointers.
>My problems are:
>
>(1) How to get the interpreter to use the screen fonts that come with
>X11 Release 3?

This isn't easy to do at the moment.  I am toying with this, I'll post
if I get it to work.  For now, you will have to live with the crummy
Hershey fonts, or write outlines in PostScript to replace them.

>(2) The interpreter does not seem to work on postscript programs that
>are generated by the tool "dvi2ps."  It usually terminates with this
>message: "invalidfont in operator definefont." 

Two problems here:
1) The tex.ps header file does not create "valid" fonts:  they only
have 128 entries, instead of 256.  You can modify the tex.ps to "do
the right thing", which will solve the problem.  Alternatively:

2) The PostScript manual doesn't say one way or another how many
entries the Encoding Array must have.  So modify CheckFont in font.c
to not look at lengthArray(enc), like it does now.  Or make it print a
warning message.  Your choice.  The LaserWriter, and most other
printers I've tried, allow smaller than 256 entry arrays.  So ignoring
it may be defacto correct.

One more thing: I haven't been able to get dvi2ps output to display
correctly even with this fix.  Some problem with the bitmap fonts,
which I haven't solved yet.

>Thank you in advance.
>
>Richard Koo 			| Internet: koo@orc.olivetti.com
>Olivetti Research Center	| UUCP: {...}!ames!oliveb!orc!koo
>2882 Sand Hill Road		| Voice: +1-415-496-6232
>Menlo Park, CA 94025		| Fax: +1-415-496-6219
>Richard Koo 			| Internet: koo@orc.olivetti.com
>Olivetti Research Center	| UUCP: {...}!ames!oliveb!orc!koo
>2882 Sand Hill Road		| Voice: +1-415-496-6232
>Menlo Park, CA 94025		| Fax: +1-415-496-6219

You're welcome.


-David Jedlinsky
opus@athena.mit.edu
Technical Details
Message-ID: <10043@bloom-beacon.MIT.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!purdue!bu-cs!bloom-beacon!athena.mit.edu!opus
References: <39629@oliveb.olivetti.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!purdue!bu-cs!bloom-beacon!athena.mit.edu!opus
From: opus@athena.mit.edu (David C. Jedlinsky)
Newsgroups: comp.lang.postscript
Subject: Re: need help with postscript interpreter
Message-ID: <10043@bloom-beacon.MIT.EDU>
Date: 23 Mar 89 07:27:41 GMT
References: <39629@oliveb.olivetti.com>
Sender: daemon@bloom-beacon.MIT.EDU
Reply-To: opus@athena.mit.edu (David C. Jedlinsky)
Distribution: na
Organization: Massachusetts Institute of Technology
Lines: 49