home *** CD-ROM | disk | FTP | other *** search
-
- /uniqueid 0 def
- /amigavec [
- 8#055 /hyphen
- 8#230 /dotlessi
- 8#231 /grave
- 8#232 /acute
- 8#233 /circumflex
- 8#234 /tilde
- 8#235 /dieresis
- 8#236 /ring
- 8#237 /cedilla
- 8#240 /space
- 8#244 /currency
- 8#246 /bar
- 8#250 /dieresis
- 8#251 /copyright
- 8#252 /ordfeminine
- 8#254 /logicalnot
- 8#255 /.notdef
- 8#256 /registered
- 8#257 /macron
- 8#260 /ring
- 8#261 /.notdef
- 8#262 /.notdef
- 8#263 /dagger
- 8#264 /.notdef
- 8#265 /.notdef
- 8#267 /bullet
- 8#271 /.notdef
- 8#272 /ordmasculine
- 8#274 /.notdef
- 8#275 /.notdef
- 8#276 /.notdef
- 8#300 /Agrave
- 8#301 /Aacute
- 8#302 /Acircumflex
- 8#303 /Atilde
- 8#304 /Adieresis
- 8#305 /Aring
- 8#306 /AE
- 8#307 /Ccedilla
- 8#310 /Egrave
- 8#311 /Eacute
- 8#312 /Ecircumflex
- 8#313 /Edieresis
- 8#314 /Igrave
- 8#315 /Iacute
- 8#316 /Icircumflex
- 8#317 /Idieresis
- 8#320 /.notdef
- 8#321 /Ntilde
- 8#322 /Ograve
- 8#323 /Oacute
- 8#324 /Ocircumflex
- 8#325 /Otilde
- 8#326 /Odieresis
- 8#327 /.notdef
- 8#330 /Oslash
- 8#331 /Ugrave
- 8#332 /Uacute
- 8#333 /Ucircumflex
- 8#334 /Udieresis
- 8#335 /.notdef
- 8#336 /.notdef
- 8#337 /germandbls
- 8#340 /agrave
- 8#341 /aacute
- 8#342 /acircumflex
- 8#343 /atilde
- 8#344 /adieresis
- 8#345 /aring
- 8#346 /ae
- 8#347 /ccedilla
- 8#350 /egrave
- 8#351 /eacute
- 8#352 /ecircumflex
- 8#353 /edieresis
- 8#354 /igrave
- 8#355 /iacute
- 8#356 /icircumflex
- 8#357 /idieresis
- 8#360 /.notdef
- 8#361 /ntilde
- 8#362 /ograve
- 8#363 /oacute
- 8#364 /ocircumflex
- 8#365 /otilde
- 8#366 /odieresis
- 8#367 /.notdef
- 8#370 /oslash
- 8#371 /ugrave
- 8#372 /uacute
- 8#373 /ucircumflex
- 8#374 /udieresis
- 8#375 /.notdef
- 8#376 /.notdef
- 8#377 /ydieresis
- ] def
- /dontCopyID false def
- /copyfont {
- { exch dup /FID ne
- {
- dup /UniqueID eq dontCopyID and
- {pop pop}
- {
- dup /Encoding eq
- { exch dup length array copy outfontdict 3 1 roll put}
- { exch outfontdict 3 1 roll put}
- ifelse
- }
- ifelse
- }
- { pop pop}
- ifelse
- } forall
- } bind def
- /recode {
- copyfont dup dup
- outfontdict /FontName 3 -1 roll put
- amigavec aload pop
- amigavec length 2 idiv
- {outfontdict /Encoding get 3 1 roll put} repeat
- } bind def
- /defamigafont {
- /fntsclmtx [0 0 0 0 0 0] def
- exch
- dup fntsclmtx exch 0 exch put
- neg fntsclmtx exch 3 exch put
- findfont fntsclmtx makefont setfont
- } bind def
- /deffont {
- 3 -1 roll
- {
- dup dup length dup 5 add string /newnamestr exch def
- exch newnamestr copy pop newnamestr exch (Amiga) putinterval
- newnamestr cvn dup FontDirectory exch known
- {exch pop}
- {
- exch cvn findfont
- dup maxlength dict /outfontdict exch def
- /dontCopyID false def recode
- outfontdict definefont pop
- }
- ifelse
- }
- { cvn }
- ifelse
- defamigafont
- } bind def
-
- /mvx {
- currentpoint exch pop moveto
- } bind def
- /mvy {
- currentpoint pop exch moveto
- } bind def
-
- /MakeOutline {
- 3 -1 roll
- {/xtra 8 def /suffix (OutAmiga) def}
- {/xtra 3 def /suffix (Out) def}
- ifelse
- dup dup length dup xtra add string /newnamestr exch def
- exch newnamestr copy pop newnamestr exch suffix putinterval
- newnamestr cvn dup FontDirectory exch known
- {exch pop}
- {
- exch cvn findfont
- dup dup maxlength
- exch /UniqueID known not {1 add} if
- dict /outfontdict exch def
- /dontCopyID true def
- xtra 8 eq {recode}{copyfont dup} ifelse
- % outfontdict /UniqueID uniqueid put
- % /uniqueid uniqueid 1 add def
- outfontdict /PaintType 2 put
- outfontdict /StrokeWidth 1000 36 div put
- outfontdict definefont pop
- } ifelse
- defamigafont
- } bind def
- /rect 4 array def % used in dobox
- /dorect {
- newpath
- rect aload pop 4 copy moveto 3 1 roll exch lineto
- 4 2 roll lineto lineto
- closepath
- } bind def
-
- /dobox { %clip trnsp x1 y1 x2 y2 dobox
- rect astore pop
- {} {dorect 1 setgray fill} ifelse
- {dorect clip} if
- } bind def
-
- /dogreyimage { % width height xscl yscl x0 y0 dogreyimage
- 5 index 1 add 2 idiv string
- /picstr exch def
- translate scale
- 4 [1 0 0 1 0 0]
- {currentfile picstr readhexstring pop }
- image
- } bind def
-
- /do8greyimage { % width height xscl yscl x0 y0 do8greyimage
- % same as above, but 8 bits per sample
- 5 index string
- /picstr exch def
- translate scale
- 8 [1 0 0 1 0 0]
- {currentfile picstr readhexstring pop }
- image
- } bind def
-
- /docolorimage { % width height xscl yscl x0 y0 docolorimage
- 4 dict begin
- 5 index 1 add 2 idiv
- dup /cstr exch string def
- dup /ystr exch string def
- dup /mstr exch string def
- /kstr exch string def
- translate scale
- 4 [1 0 0 1 0 0]
- { currentfile cstr readhexstring pop }
- { currentfile mstr readhexstring pop }
- { currentfile ystr readhexstring pop }
- { currentfile kstr readhexstring pop }
- true 4 colorimage
- end
- } bind def
-
- /bwline { % linewidth linejoin linecap grey dash 0 bwline
- setdash setgray setlinecap setlinejoin setlinewidth
- } bind def
-
- /colorline { %linewidth linejoin linecap c m y k dash 0 colorline
- setdash setcmykcolor setlinecap s