Article View: comp.lang.postscript
Article #1091DECwindows PS previewer
From: Eric Fielding
Date: Wed, 20 Sep 1989 15:25
Date: Wed, 20 Sep 1989 15:25
53 lines
1960 bytes
1960 bytes
I am not sure if this is a problem with our PostScript code or the DEC PS
previewer.
We have been using the "dxpsview" PostScript previewer on a DECstation to look
at our PostScript files before sending them to a LaserWriter. Large files
sure plot faster than the print on the slow LaserWriter. Some files, however,
don't work on the previewer that do print on the LaserWriter, ones that define
a pattern fill via a setscreen procedure. The relevant PS is this:
/bitison
{/ybit exch def /xbit exch def
bstring ybit bwidth mul
xbit 8 idiv add get
1 7 xbit 8 mod sub bitshift
and 0 ne} def
/setpattern
{/freq exch def
/bwidth exch def
/bpside exch def
/bstring exch def
/onbits 0 def /offbits 0 def
freq 0
{/y exch def /x exch def
/xindex x 1 add 2 div
bpside mul cvi def
/yindex y 1 add 2 div
bpside mul cvi def
xindex yindex bitison
{/onbits onbits 1 add def 1}
{/offbits offbits 1 add def 0}
ifelse
} setscreen
offbits offbits onbits add div setgray
} def
/pat2 <0808080808080808> def
...
/pat22, etc.
We get an error only when we try to use the pattern file via this call:
pat2 8 1 300 32 div setpattern newpath 100 100 moveto 200 200 lineto
200 100 lineto closepath fill
The error is:
Error: dictfull; OffendingCommand: def
Is there some way to make the dictionary bigger or is there something wrong
with the way our patterns are defined or is there probably a bug in dxpsview?
++Eric Fielding
eric@jasper.tn.cornell.edu
eric@crnlthry.bitnet
Technical Details
Message-ID:
<8894@batcomputer.tn.cornell.edu>Path:
arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!batcomputer!ericShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!batcomputer!eric From: eric@batcomputer.tn.cornell.edu (Eric Fielding) Newsgroups: comp.lang.postscript,comp.sys.dec Subject: DECwindows PS previewer Message-ID: <8894@batcomputer.tn.cornell.edu> Date: 20 Sep 89 15:25:22 GMT Reply-To: fielding@geology.tn.cornell.edu Distribution: na Organization: Department of Geological Sciences, Cornell University Lines: 53