From: eric@batcomputer.tn.cornell.edu (Eric Fielding)
Subject: DECwindows PS previewer
Date: 20 Sep 89 15:25:22 GMT [thread overview]
Message-ID: <8894@batcomputer.tn.cornell.edu> (raw)
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
reply other threads:[~1989-09-20 15:25 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox