summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Resource/Init/gs_cet.ps14
-rw-r--r--Resource/Init/gs_init.ps1
2 files changed, 11 insertions, 4 deletions
diff --git a/Resource/Init/gs_cet.ps b/Resource/Init/gs_cet.ps
index ec2572b8a..d47febff6 100644
--- a/Resource/Init/gs_cet.ps
+++ b/Resource/Init/gs_cet.ps
@@ -1,6 +1,10 @@
1%!PS 1%!PS
2% Set defaults for Ghostscript to match Adobe CPSI behaviour for CET 2% Set defaults for Ghostscript to match Adobe CPSI behaviour for CET
3 3
4/.odef { % <name> <proc> odef -
5 1 index exch .makeoperator def
6} bind def
7
4systemdict /product get (PhotoPRINT SE 5.0v2) readonly eq 8systemdict /product get (PhotoPRINT SE 5.0v2) readonly eq
5{ 9{
6 (%END GS_CET) .skipeof 10 (%END GS_CET) .skipeof
@@ -93,7 +97,7 @@ dup 7 -1 put
93 { 97 {
94 ofile 98 ofile
95 } ifelse 99 } ifelse
96} bind odef 100} bind //.odef exec
97currentdict /ofile undef 101currentdict /ofile undef
98 102
99% One QL job (23-12B.PS) effectively does: 103% One QL job (23-12B.PS) effectively does:
@@ -116,7 +120,7 @@ currentdict /ofile undef
116 { 120 {
117 osetfileposition 121 osetfileposition
118 } ifelse 122 } ifelse
119} bind odef 123} bind //.odef exec
120currentdict /osetfileposition undef 124currentdict /osetfileposition undef
121 125
122setglobal 126setglobal
@@ -144,8 +148,8 @@ userdict /.smoothness currentsmoothness put
144 } { 148 } {
145 /setsmoothness .systemvar /typecheck signalerror 149 /setsmoothness .systemvar /typecheck signalerror
146 } ifelse 150 } ifelse
147} bind odef 151} bind //.odef exec
148/currentsmoothness { userdict /.smoothness get } bind odef % for 09-55.PS, 09-57.PS . 152/currentsmoothness { userdict /.smoothness get } bind //.odef exec % for 09-55.PS, 09-57.PS .
149 153
150% slightly nasty hack to give consistent cluster results 154% slightly nasty hack to give consistent cluster results
151/ofnfa systemdict /filenameforall get def 155/ofnfa systemdict /filenameforall get def
@@ -164,6 +168,8 @@ userdict /.smoothness currentsmoothness put
164 } ifelse 168 } ifelse
165 ofnfa 169 ofnfa
166} bind def 170} bind def
171
172currentdict /.odef undef
167% end of slightly nasty hack to give consistent cluster results 173% end of slightly nasty hack to give consistent cluster results
168 174
169//false 0 startjob pop % re-enter encapsulated mode 175//false 0 startjob pop % re-enter encapsulated mode
diff --git a/Resource/Init/gs_init.ps b/Resource/Init/gs_init.ps
index 88ae05642..8ecd49db6 100644
--- a/Resource/Init/gs_init.ps
+++ b/Resource/Init/gs_init.ps
@@ -2284,6 +2284,7 @@ SAFER { .setsafeglobal } if
2284 /.loadttcidfont 2284 /.loadttcidfont
2285 /.loadpdfttfont 2285 /.loadpdfttfont
2286 /obind 2286 /obind
2287 /odef
2287 2288
2288 % Used by a free user in the Library of Congress. Apparently this is used to 2289 % Used by a free user in the Library of Congress. Apparently this is used to
2289 % draw a partial page, which is then filled in by the results of a barcode 2290 % draw a partial page, which is then filled in by the results of a barcode