home *** CD-ROM | disk | FTP | other *** search
- %!PS-Adobe-3.0 Resource-File
- %%BeginResource: file (FS/Level2CID)
- %%Title: (FS/Level2CID)
- %%Version: 0.402
- %%Copyright: ------------------------------------------------------------
- %%Copyright: Copyright 1990-1994 Adobe Systems Incorporated.
- %%Copyright: All rights reserved.
- %%Copyright:
- %%Copyright: Patents Pending
- %%Copyright:
- %%Copyright: NOTICE: All information contained herein is the property
- %%Copyright: of Adobe Systems Incorporated. Many of the intellectual
- %%Copyright: and technical concepts contained herein are proprietary
- %%Copyright: to Adobe, are protected as trade secrets, and are made
- %%Copyright: available only to Adobe licensees for their internal use.
- %%Copyright: Any reproduction or dissemination of this software is
- %%Copyright: strictly forbidden unless prior written permission is
- %%Copyright: obtained from Adobe.
- %%Copyright:
- %%Copyright: PostScript and Display PostScript are trademarks of
- %%Copyright: Adobe Systems Incorporated which may be registered in
- %%Copyright: certain jurisdictions.
- %%Copyright: ------------------------------------------------------------
- %%EndComments
- lib_extensions begin true lib_vmSaveState false lib_packingSaveState end
- userdict begin/$PGFKeys{//systemdict/globaldict get/$PGFKeys get}bind
- executeonly def end
- globaldict begin
-
- /cid_FS_SCRATCH 256 string def
-
- /getresfilename
- {
- /Category lib_findresource
- begin
- cid_FS_SCRATCH ResourceFileName
- end
- } bind executeonly def
- /cid_getresfilename //getresfilename def
-
- /execresfile { getresfilename run } bind executeonly def
- /cid_execresfile //execresfile def
-
- globaldict /raise known not
- {
- /FSops1 true def
- /raise
- { //systemdict /errordict get exch get exec } bind def
- }
- if
- globaldict /reraise known not
- {
- /FSops2 true def
- /reraise
- {
- cvx //systemdict /$error get /errorname get
- dup null eq { pop /undefined } if
- //systemdict /errordict get exch get exec
- } bind def
- }
- if
- globaldict /clearerror known not
- {
- /FSops3 true def
- /clearerror
- { //systemdict /$error get /newerror //false put } bind def
- }
- if
-
- % redefine resource categories in global vm (not per context)
-
- /Generic /Category lib_findresource
- /FindResource get /generic_FindResource exch def
-
- /Font /Category lib_findresource
- dup /ResourceStatus get /cid_oldResourceStatus exch def
- dup
- /FindResource
- get /cid_oldFindResource exch def
- /ResourceForAll get /cid_oldResourceForAll exch def
- globaldict
- /__CID_Font_Res_Init
- known
- not
- {
- /Font /Category lib_findresource
- dup length dict copy
- dup /ResourceStatus
- {dup //cid_oldResourceStatus
- exec dup{4 -1 roll pop}{lib_extensions begin true lib_vmSaveState end pop
- cid_extensions begin cid_IsComposedFont end{pop pop pop 2 -1 true}{pop false}
- ifelse lib_extensions begin lib_vmRestoreState end}ifelse}bind executeonly put
- dup
- /FindResource
- {dup//FontDirectory exch known{//FontDirectory exch get}{
- lib_extensions begin false lib_vmSaveState end
- cid_extensions begin
- cid_IsComposedFont end{/CIDInit/ProcSet lib_findresource begin 1 index
- /FDepVector cid_FindFixEntry{0 exch exec}{cid_composefont}ifelse end
- lib_extensions begin lib_vmRestoreState end}{lib_extensions begin
- lib_vmRestoreState end//cid_oldFindResource exec}ifelse}ifelse}bind
- executeonly put dup
- /ResourceForAll{
- lib_extensions begin 3 copy/lib_s1 exch def
- /lib_s2 exch def/lib_s3 exch def end//cid_oldResourceForAll exec
- lib_extensions begin/lib_dstr5(fonts/)lib_Strcpy lib_s3 lib_Strcat lib_Strget
- /lib_s2 load lib_s1 false end
- cid_extensions /cid_CIDKeyedFontsForall get exec
- }
- bind executeonly put
- % lib_extensions begin
- % /Font lib_SaveVMInstances
- % end
- /Font exch /Category lib_defineresource pop
- % lib_extensions begin
- % /Font lib_RestoreVMInstances
- % end
- /Generic/Category
- lib_findresource dup length 2 add dict copy dup/InstanceType/dicttype put
- /CompatibleCIDFont exch/Category lib_defineresource pop/Generic/Category
- lib_findresource dup length 2 add dict copy dup/InstanceType/dicttype put dup
- /FindResource{dup FontDirectory exch known{FontDirectory exch get}{dup mark
- exch lib_extensions begin false lib_vmSaveState/lib_dstr9 exch lib_Strcpy
- lib_Strget end(CompatibleFont/)cid_AppendName cid_PrependRoot dup status{pop
- pop pop pop{run}stopped cleartomark FontDirectory exch 2 copy known{get}{exch
- pop//cid_oldFindResource exec}ifelse}{cleartomark//cid_oldFindResource exec}
- ifelse lib_extensions begin lib_vmRestoreState end}ifelse}bind executeonly put
- /CompatibleFont exch/Category lib_defineresource pop currentdict
- /cid_oldResourceStatus undef currentdict/cid_oldFindResource undef currentdict
- /cid_oldResourceForAll undef/ProcSet/Category lib_findresource dup
- /ResourceStatus get/cid_oldResourceStatus exch def dup length 1 add dict copy
- dup/ResourceStatus{dup/CIDInit eq{/AdobeTypeComposer/ProcSet resourcestatus{
- pop pop pop false}{//cid_oldResourceStatus exec}ifelse}{
- //cid_oldResourceStatus exec}ifelse}bind executeonly put lib_extensions
- /lib_nativeMode get{pop}{lib_extensions begin/ProcSet lib_SaveVMInstances end
- /ProcSet exch/Category lib_defineresource pop lib_extensions begin/ProcSet
- lib_RestoreVMInstances end}ifelse/Generic/Category lib_findresource dup length
- 2 add dict copy dup/ResourceFileName{{pop(fsupp/)cid_AppendName
- cid_PrependRoot exch pop}stopped{/ResourceFileName//reraise exec}if}bind
- executeonly put/FSupp exch/Category lib_defineresource pop/Generic/Category
- lib_findresource dup length 2 add dict copy dup/ResourceFileName{{pop
- (pgfsupp/)cid_AppendName cid_PrependRoot exch pop}stopped{/ResourceFileName
- //reraise exec}if}bind executeonly put/PGFSupp exch/Category
- lib_defineresource pop/Generic/Category lib_findresource dup length 2 add dict
- copy dup/ResourceFileName{{pop(Sys/)cid_AppendName cid_PrependRoot exch pop}
- stopped{/ResourceFileName//reraise exec}if}bind executeonly put/Sys exch
- /Category lib_defineresource pop/Generic/Category lib_findresource dup length
- 2 add dict copy dup/ResourceFileName{{pop(cdevprocs/)cid_AppendName
- cid_PrependRoot exch pop}stopped{/ResourceFileName//reraise exec}if}bind
- executeonly put/CDevProc exch/Category lib_defineresource pop/Generic/Category
- lib_findresource dup length 2 add dict copy dup/InstanceType/dicttype put dup
- /ResourceFileName{{pop(charstrings/)cid_AppendName cid_PrependRoot exch pop}
- stopped{/ResourceFileName//reraise exec}if}bind executeonly put/Charstring
- exch/Category lib_defineresource pop/Generic/Category lib_findresource dup
- length 2 add dict copy dup/InstanceType/dicttype put dup/ResourceFileName{{pop
- (pgfonts/)cid_AppendName cid_PrependRoot exch pop}stopped{/ResourceFileName
- //reraise exec}if}bind executeonly put/PGFont exch/Category lib_defineresource
- pop lib_extensions/lib_nativeMode get not{/Generic/Category lib_findresource
- dup length 2 add dict copy dup/InstanceType/dicttype put/CMap exch/Category
- lib_defineresource pop}if/Generic/Category lib_findresource dup length 2 add
- dict copy dup/InstanceType/dicttype put/FixCMapCategory exch/Category
- lib_defineresource pop/Generic/Category lib_findresource dup length 2 add dict
- copy dup/InstanceType/dicttype put/FixCIDInitProcSet exch/Category
- lib_defineresource pop lib_extensions/lib_nativeMode get not{/Generic/Category
- lib_findresource dup length 2 add dict copy dup/InstanceType/dicttype put
- /CIDFont exch/Category lib_defineresource pop}if userdict/EncodingDirectory
- known{userdict/EncodingDirectory get gcheck}{true}ifelse{currentglobal//false
- setglobal userdict/EncodingDirectory 32 dict put setglobal}if/Generic/Category
- lib_findresource dup length 2 add dict copy dup/InstanceType/arraytype put dup
- /ResourceFileName{{pop(encodings/)cid_AppendName cid_PrependRoot exch pop}
- stopped{/ResourceFileName//reraise exec}if}bind executeonly put dup dup begin
- /FindResource{currentglobal exch//generic_FindResource stopped{dup mark exch{userdict
- /EncodingDirectory get 1 index get dup gcheck setglobal/Encoding
- lib_defineresource exch pop exch pop//clearerror exec}stopped{cleartomark exch
- setglobal/FindResource cvx/undefinedresource//raise exec}if}if exch setglobal}
- end bind executeonly put lib_extensions begin/Encoding lib_SaveVMInstances end
- /Encoding exch/Category lib_defineresource pop lib_extensions begin/Encoding
- lib_RestoreVMInstances end systemdict/findpgfont known not globaldict
- /findpgfont known not and{userdict/PGFontDirectory known not{currentglobal
- //false setglobal userdict/PGFontDirectory 32 dict put setglobal}if/findpgfont
- {lib_extensions begin true lib_vmSaveState end dup/PGFont{lib_findresource}
- stopped{true setglobal pop dup type/savetype eq{restore pop pop pop}if
- userdict/PGFontDirectory get exch known{dup userdict/PGFontDirectory get exch
- get dup gcheck setglobal/PGFont lib_defineresource lib_extensions begin
- lib_vmRestoreState end//clearerror exec}{lib_extensions begin
- lib_vmRestoreState end/invalidfont//raise exec}ifelse}{exch pop lib_extensions
- begin lib_vmRestoreState end}ifelse}bind executeonly def}if systemdict
- /findcharstrings known not globaldict/findcharstrings known not and{userdict
- /CharStringsDirectory known not{currentglobal//false setglobal userdict
- /CharStringsDirectory 32 dict put setglobal}if/findcharstrings{currentglobal
- exch//false setglobal dup/Charstring{lib_findresource}stopped{//false
- setglobal pop userdict/CharStringsDirectory get exch known{dup userdict
- /CharStringsDirectory get exch get dup gcheck setglobal/Charstring
- lib_defineresource exch setglobal//clearerror exec}{exch setglobal/Charstring
- stop}ifelse}{exch pop exch setglobal}ifelse}bind executeonly def}if userdict
- /CDevProcDirectory known not{currentglobal false setglobal userdict
- /CDevProcDirectory 32 dict put true setglobal userdict/CDevProcDirectory get
- /StandardCDevProc 1183615869 internaldict dup/stdCDevProc known{/stdCDevProc
- get}{pop{pop pop pop pop 0 exch -1000 exch 2 div 880}bind}ifelse put userdict
- /CDevProcDirectory get/StandardCDevProc get/StandardCDevProc exch/CDevProc
- lib_defineresource pop setglobal}if systemdict/findcdevproc known not
- globaldict/findcdevproc known not and userdict/findcdevproc known not and{
- /findcdevproc{currentglobal exch true setglobal dup/CDevProc{lib_findresource}
- stopped{true setglobal pop userdict/CDevProcDirectory get exch known{dup
- userdict/CDevProcDirectory get exch get dup gcheck setglobal/CDevProc
- lib_defineresource exch setglobal//clearerror exec}{exch setglobal/CDevProc
- stop}ifelse}{exch pop exch setglobal}ifelse}bind executeonly def}if
- /NominalJISEncoding/Encoding resourcestatus{pop pop}{[/c00/c01/c02/c03/c04/c05
- /c06/c07/c08/c09/c0A/c0B/c0C/c0D/c0E/c0F/c10/c11/c12/c13/c14/c15/c16/c17/c18
- /c19/c1A/c1B/c1C/c1D/c1E/c1F/c20/c21/c22/c23/c24/c25/c26/c27/c28/c29/c2A/c2B
- /c2C/c2D/c2E/c2F/c30/c31/c32/c33/c34/c35/c36/c37/c38/c39/c3A/c3B/c3C/c3D/c3E
- /c3F/c40/c41/c42/c43/c44/c45/c46/c47/c48/c49/c4A/c4B/c4C/c4D/c4E/c4F/c50/c51
- /c52/c53/c54/c55/c56/c57/c58/c59/c5A/c5B/c5C/c5D/c5E/c5F/c60/c61/c62/c63/c64
- /c65/c66/c67/c68/c69/c6A/c6B/c6C/c6D/c6E/c6F/c70/c71/c72/c73/c74/c75/c76/c77
- /c78/c79/c7A/c7B/c7C/c7D/c7E/c7F/c80/c81/c82/c83/c84/c85/c86/c87/c88/c89/c8A
- /c8B/c8C/c8D/c8E/c8F/c90/c91/c92/c93/c94/c95/c96/c97/c98/c99/c9A/c9B/c9C/c9D
- /c9E/c9F/cA0/cA1/cA2/cA3/cA4/cA5/cA6/cA7/cA8/cA9/cAA/cAB/cAC/cAD/cAE/cAF/cB0
- /cB1/cB2/cB3/cB4/cB5/cB6/cB7/cB8/cB9/cBA/cBB/cBC/cBD/cBE/cBF/cC0/cC1/cC2/cC3
- /cC4/cC5/cC6/cC7/cC8/cC9/cCA/cCB/cCC/cCD/cCE/cCF/cD0/cD1/cD2/cD3/cD4/cD5/cD6
- /cD7/cD8/cD9/cDA/cDB/cDC/cDD/cDE/cDF/cE0/cE1/cE2/cE3/cE4/cE5/cE6/cE7/cE8/cE9
- /cEA/cEB/cEC/cED/cEE/cEF/cF0/cF1/cF2/cF3/cF4/cF5/cF6/cF7/cF8/cF9/cFA/cFB/cFC
- /cFD/cFE/cFF]/NominalJISEncoding exch/Encoding lib_defineresource pop}ifelse
- globaldict/FSops1 known{globaldict/raise undef globaldict/FSops1 undef}if
- globaldict/FSops2 known{globaldict/reraise undef globaldict/FSops2 undef}if
- globaldict/FSops3 known{globaldict/clearerror undef globaldict/FSops3 undef}if
- globaldict /__CID_Font_Res_Init true put }
- {
- % define some stuff in userdict needed for every context
- userdict /EncodingDirectory known
- { userdict /EncodingDirectory get gcheck }
- { true }
- ifelse
- {
- currentglobal
- //false
- setglobal
- userdict /EncodingDirectory 32 dict put
- setglobal
- }
- if
- userdict/PGFontDirectory known not
- {
- currentglobal
- //false
- setglobal
- userdict /PGFontDirectory 32 dict put
- setglobal
- }
- if
- userdict/CharStringsDirectory known not
- {
- currentglobal
- //false
- setglobal
- userdict /CharStringsDirectory 32 dict put
- setglobal
- }
- if
-
- userdict /CDevProcDirectory known not
- {
- currentglobal false setglobal
- userdict /CDevProcDirectory 32 dict put
- true setglobal
- userdict /CDevProcDirectory get /StandardCDevProc
- 1183615869 internaldict dup /stdCDevProc known
- { /stdCDevProc get }
- { pop { pop pop pop pop 0 exch -1000 exch 2 div 880 } bind }
- ifelse put
- userdict /CDevProcDirectory get /StandardCDevProc get
- /StandardCDevProc exch /CDevProc lib_defineresource pop
- setglobal
- }
- if
- }
- ifelse
- end
-
- userdict begin/RD{string currentfile exch readstring pop}bind executeonly
- def/ND{noaccess def}bind executeonly def/NP{noaccess put}bind executeonly def
- /-|/RD load def/|-/ND load def/|/NP load def end userdict begin/substfontdict
- 9 dict def substfontdict/subst{/b exch def/a exch def/str exch cvlit def str a
- search{/newstr b length a length sub str length add string def newstr copy
- length/cnt exch def pop newstr cnt b putinterval/cnt cnt b length add def
- newstr exch cnt exch putinterval newstr//true}{//false}ifelse}bind readonly
- put $error dup begin/SubstituteFont{//substfontdict begin currentglobal//true
- setglobal mark 2 index{dup length string cvs(-Ext-SJ-)(-Ext-RKSJ-)subst not{
- stop}if cvn}stopped{cleartomark $error/newerror//false put setglobal end
- //SubstituteFont exec}{exch pop exch setglobal exch pop end}ifelse}end bind
- readonly put userdict/substfontdict undef end lib_extensions begin
- lib_vmRestoreState lib_packingRestoreState end
- %%EndResource
- %%EOF
-