Xref: utzoo comp.lang.postscript:2913 comp.sys.dec:1838 Path: 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 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