rfa.ps
来自「ftam等标准协议服务器和客户端的源代码。」· PS 代码 · 共 1,762 行 · 第 1/5 页
PS
1,762 行
90.0 rotate} bdef %% <mode> SPB - begin "\special" mode%% This is the PostScript procedure used to transfer from the internal% environment used for the DVI translation code emitted by DVIPS to% a standard PostScript environment.%% Parameters: 0 - Local% 1 - Global% 2 - Inline%/SPB { /spc_mode xdef spc_mode 0 eq spc_mode 2 eq or {XP} {spc_mode 1 eq {GlobalMode} if} ifelse Resolution 72.0 div dup scale % Restore default scaling... Magnification 1000.0 div dup scale % Adjust for any magnification... /Xpos Xpos 72.0 Resolution div mul 1000.0 Magnification div mul def /Ypos Ypos 72.0 Resolution div mul 1000.0 Magnification div mul def} bdef %% <mode> SPE - end "\special" mode%% This is the PostScript procedure used to reenter the internal% environment used for the DVI translation code emitted by DVIPS from % the standard PostScript environment provided for processing user-supplied% PostScript code.%% Parameters: 0 - Local% 1 - Global% 2 - Inline%/SPE { /spc_mode xdef 1000.0 Magnification div dup scale % Un-adjust for any magnification... 72.0 Resolution div dup scale % Restore default internal scaling... spc_mode 0 eq spc_mode 2 eq or {RP} {spc_mode 1 eq {LocalMode} if} ifelse} bdef %% <num-copies> PP%/PP { /#copies xdef showpage /#copies 1 def} bdef %% /font-name <point-size(pix)> DMF%/DMF { /psz xdef /nam xdef nam findfont psz scalefont setfont} bdef %% /abcd (xxx) str-concat ==> /abcdxxx%/str-concatstr 64 string def/str-concat { /xxx xdef /nam xdef /namstr nam str-concatstr cvs def /newnam namstr length xxx length add string def newnam 0 namstr putinterval newnam namstr length xxx putinterval newnam cvn } bdef %% /abcdef 2 str-strip ==> /cdef%/str-strip { /num xdef /nam xdef /namstr nam tempstr cvs def /newlen namstr length num sub def namstr num newlen getinterval cvn} bdef %% <old-dict> copydict ==> new-dict on stack%/copydict { dup length 1 add dict /newdict xdef {1 index /FID ne {newdict 3 1 roll put} {pop pop} ifelse } forall newdict} bdef %% <font-type> DefineCMEncoding%/DefineCMEncoding { /EncodeType xdef /CMEncoding 256 array def /Times-Roman findfont /Encoding get aload pop CMEncoding astore pop EncodeType 11 eq {Do-CM-rm-encoding} if EncodeType 12 eq {Do-CM-it-encoding} if EncodeType 13 eq {Do-CM-tt-encoding} if} bdef %% Do special mappings for the various CM-font types. Characters that% get "covered up" are repositioned in the range (128,128+32).%/Do-standard-CM-encodings { CMEncoding dup 0 /.notdef put dup 1 /.notdef put dup 2 /.notdef put dup 3 /.notdef put dup 4 /.notdef put dup 5 /.notdef put dup 6 /.notdef put dup 7 /.notdef put dup 8 /.notdef put dup 9 /.notdef put dup 10 /.notdef put dup 11 /.notdef put dup 12 /fi put dup 13 /fl put dup 14 /.notdef put dup 15 /.notdef put dup 16 /dotlessi put dup 17 /.notdef put dup 18 /grave put dup 19 /acute put dup 20 /caron put dup 21 /breve put dup 22 /macron put dup 23 /ring put dup 24 /cedilla put dup 25 /germandbls put dup 26 /ae put dup 27 /oe put dup 28 /oslash put dup 29 /AE put dup 30 /OE put dup 31 /Oslash put dup 127 /dieresis put dup 128 /space put dup 129 /quotedbl put dup 130 /sterling put dup 131 /dollar put dup 132 /less put dup 133 /greater put dup 134 /backslash put dup 135 /asciicircum put dup 136 /underscore put dup 137 /braceleft put dup 138 /bar put dup 139 /braceright put dup 140 /asciitilde put pop} bdef /Do-CM-rm-encoding { Do-standard-CM-encodings CMEncoding dup 32 /.notdef put dup 34 /quotedblright put dup 60 /exclamdown put dup 62 /questiondown put dup 92 /quotedblleft put dup 94 /circumflex put dup 95 /dotaccent put dup 123 /endash put dup 124 /emdash put dup 125 /hungarumlaut put dup 126 /tilde put pop} bdef /Do-CM-it-encoding { Do-standard-CM-encodings CMEncoding dup 32 /.notdef put dup 34 /quotedblright put dup 36 /sterling put dup 60 /exclamdown put dup 62 /questiondown put dup 92 /quotedblleft put dup 94 /circumflex put dup 95 /dotaccent put dup 123 /endash put dup 124 /emdash put dup 125 /hungarumlaut put dup 126 /tilde put pop} bdef /Do-CM-tt-encoding { Do-standard-CM-encodings CMEncoding dup 12 /.notdef put dup 13 /quotesingle put dup 14 /exclamdown put dup 15 /questiondown put dup 94 /circumflex put dup 126 /tilde put pop} bdef%% Routines to handle packing/unpacking numbers.%% <target> <pos> <num> PackHW --> <new target>%/PackHW { /num xdef /pos xdef /target xdef num 16#0000FFFF and 1 pos sub 16 mul bitshift target or} bdef%% <target> <pos> <num> PackByte --> <new target>%/PackByte { /num xdef /pos xdef /target xdef num 16#000000FF and 3 pos sub 8 mul bitshift target or} bdef%% <pos> <num> UnpkHW --> <unpacked value>%/UnpkHW { /num xdef /pos xdef num 1 pos sub -16 mul bitshift 16#0000FFFF and dup 16#00007FFF gt {16#00010000 sub} if} bdef%% <pos> <num> UnpkByte --> <unpacked value>%/UnpkByte { /num xdef /pos xdef num 3 pos sub -8 mul bitshift 16#000000FF and dup 16#0000007F gt {16#00000100 sub} if} bdef%% <int-font-name> <ext-font-name> <pt-sz(pix)> <type> <loaded-fg> DefineCMFont%% type 10: "as-is" PostScript font% type 11: CM-mapped PostScript font - roman% type 12: CM-mapped PostScript font - text italic % type 13: CM-mapped PostScript font - typewriter type %/int-dict-name {int (-dict) str-concat} bdef/int-dict {int (-dict) str-concat cvx load} bdef/DF { true % signal that the font is already loaded DefineCMFont} bdef /DNF { false % signal that the font is not already loaded DefineCMFont} bdef/DefineCMFont { /loaded xdef /typ xdef /psz xdef /ext xdef /int xdef typ 10 ne { % font_type = 11, 12, 13 loaded not { /fnam ext 3 str-strip def fnam findfont copydict /newdict xdef typ DefineCMEncoding newdict /Encoding CMEncoding put ext newdict definefont pop } if int-dict-name ext findfont psz scalefont def currentdict int [int-dict /setfont cvx] cvx put } { % font_type = 10 /fnam ext def int-dict-name fnam findfont psz scalefont def currentdict int [int-dict /setfont cvx] cvx put } ifelse} bdef %% <int-font-name> <ext-font-name> <pt-sz(pix)> <PXL mag> <num-chars>% [llx lly urx ury] <newfont-fg> DefinePXLFont%/PXLF { true % signal that the font is already loaded DefinePXLFont} bdef /PXLNF { false % signal that the font is not already loaded DefinePXLFont} bdef/PXLBuildCharDict 17 dict def /CMEncodingArray 256 array def0 1 255 {CMEncodingArray exch dup tempstr cvs cvn put} for/RasterConvert {RasterScaleFactor div} bdef /TransformBBox { aload pop /BB-ury xdef /BB-urx xdef /BB-lly xdef /BB-llx xdef [BB-llx RasterConvert BB-lly RasterConvert BB-urx RasterConvert BB-ury RasterConvert]} bdef
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?