|
|
1.1 root 1: %
2: % Version 3.3.1 prologue for Diablo 1640 files.
3: %
4:
5: /#copies 1 store
6: /aspectratio 1 def
7: /font /Courier def
8: /formsperpage 1 def
9: /hmi 12 def
10: /landscape false def
11: /magnification 1 def
12: /margin 10 def
13: /orientation 0 def
14: /resolution 240 def
15: /rotation 1 def
16: /xoffset .25 def
17: /yoffset .25 def
18:
19: /roundpage true def
20: /useclippath true def
21: /pagebbox [0 0 612 792] def
22:
23: /inch {72 mul} bind def
24: /min {2 copy gt {exch} if pop} bind def
25:
26: /setup {
27: counttomark 2 idiv {def} repeat pop
28:
29: landscape {/orientation 90 orientation add def} if
30: /scaling 72 resolution div def
31: currentdict /pointsize known not {/pointsize hmi def} if
32: font findfont pointsize scaling div scalefont setfont
33: /charwidth (M) stringwidth pop def
34:
35: pagedimensions
36: xcenter ycenter translate
37: orientation rotation mul rotate
38: width 2 div neg height 2 div translate
39: xoffset inch yoffset inch neg translate
40: margin 2 div dup neg translate
41: magnification dup aspectratio mul scale
42: height width div 1 min dup scale
43: scaling dup scale
44: } def
45:
46: /pagedimensions {
47: useclippath userdict /gotpagebbox known not and {
48: /pagebbox [clippath pathbbox newpath] def
49: roundpage currentdict /roundpagebbox known and {roundpagebbox} if
50: } if
51: pagebbox aload pop
52: 4 -1 roll exch 4 1 roll 4 copy
53: landscape {4 2 roll} if
54: sub /width exch def
55: sub /height exch def
56: add 2 div /xcenter exch def
57: add 2 div /ycenter exch def
58: userdict /gotpagebbox true put
59: } def
60:
61: /pagesetup {/page exch def 0 0 moveto} bind def
62:
63: /t {
64: charwidth sub /advance exch def
65: neg /y exch def
66: counttomark 2 idiv {y moveto advance 0 3 -1 roll ashow} repeat
67: } bind def
68:
69: /f {findfont pointsize scaling div scalefont setfont} bind def
70:
71: /done {/lastpage where {pop lastpage} if} def
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.