/usr/share/ghostscript/Resource/Init
NameSizeModeActions
cidfmap21560644editdlrm
FAPIcidfmap14830644editdlrm
FAPIconfig8150644editdlrm
FAPIfontmap14680644editdlrm
FCOfontmap-PCLPS228570644editdlrm
Fontmap1090644editdlrm
Fontmap.GS129290644editdlrm
gs_agl.ps2180210644editdlrm
gs_btokn.ps127650644editdlrm
gs_cet.ps49640644editdlrm
gs_cff.ps69690644editdlrm
gs_cidcm.ps168270644editdlrm
gs_ciddc.ps85050644editdlrm
gs_cidfm.ps80690644editdlrm
gs_cidfn.ps145470644editdlrm
gs_cidtt.ps58470644editdlrm
gs_cmap.ps184440644editdlrm
gs_cspace.ps40590644editdlrm
gs_dbt_e.ps21340644editdlrm
gs_diskn.ps68670644editdlrm
gs_dps1.ps47560644editdlrm
gs_dps2.ps87710644editdlrm
gs_dscp.ps39380644editdlrm
gs_epsf.ps121610644editdlrm
gs_fapi.ps156110644editdlrm
gs_fntem.ps113890644editdlrm
gs_fonts.ps485310644editdlrm
gs_frsd.ps37800644editdlrm
gs_icc.ps31040644editdlrm
gs_il1_e.ps27220644editdlrm
gs_img.ps239980644editdlrm
gs_init.ps945720644editdlrm
gs_lev2.ps438500644editdlrm
gs_ll3.ps195720644editdlrm
gs_mex_e.ps38430644editdlrm
gs_mgl_e.ps21810644editdlrm
gs_mro_e.ps25060644editdlrm
gs_pdfwr.ps321790644editdlrm
gs_pdf_e.ps15560644editdlrm
gs_res.ps424500644editdlrm
gs_resmp.ps224820644editdlrm
gs_setpd.ps384870644editdlrm
gs_statd.ps178510644editdlrm
gs_std_e.ps31430644editdlrm
gs_sym_e.ps31040644editdlrm
gs_trap.ps29460644editdlrm
gs_ttf.ps661730644editdlrm
gs_typ32.ps45600644editdlrm
gs_typ42.ps20960644editdlrm
gs_type1.ps125430644editdlrm
gs_wan_e.ps15630644editdlrm
pdf_base.ps608150644editdlrm
pdf_draw.ps1887230644editdlrm
pdf_font.ps983780644editdlrm
pdf_main.ps1439070644editdlrm
pdf_ops.ps758780644editdlrm
pdf_rbld.ps204800644editdlrm
pdf_sec.ps278650644editdlrm
xlatmap17670644editdlrm
Edit: /usr/share/ghostscript/Resource/Init/gs_dps1.ps (4756B)
% Copyright (C) 2001-2021 Artifex Software, Inc. % All Rights Reserved. % % This software is provided AS-IS with no warranty, either express or % implied. % % This software is distributed under license and may not be copied, % modified or distributed except as expressly authorized under the terms % of the license contained in the file LICENSE in this distribution. % % Refer to licensing information at http://www.artifex.com or contact % Artifex Software, Inc., 1305 Grant Avenue - Suite 200, Novato, % CA 94945, U.S.A., +1(415)492-9861, for further information. % % Initialization file for most of the Display PostScript functions % that are also included in Level 2. level2dict begin % ------ Virtual memory ------ % /currentshared /.currentglobal load def /scheck {.gcheck} bind odef %****** FOLLOWING IS WRONG ****** /shareddict currentdict /globaldict .knownget not { 20 dict } if def % Global and LocalFontDirectory must remain in systemdict % even if we temporarily exit Level 2 mode. end % level2dict systemdict begin /SharedFontDirectory .FontDirectory .gcheck { .currentglobal //false .setglobal currentdict /LocalFontDirectory .FontDirectory dup maxlength dict copy .forceput % LocalFontDirectory is local, systemdict is global .setglobal .FontDirectory } executeonly { currentdict /LocalFontDirectory .FontDirectory .forceput % LocalFontDirectory is local, systemdict is global 50 dict }executeonly ifelse def end % systemdict level2dict begin % setshared must rebind FontDirectory to the appropriate one of % Local or SharedFontDirectory. /.setglobal % .setglobal - { dup .setglobal //systemdict /FontDirectory .currentglobal { //SharedFontDirectory } { /LocalFontDirectory .systemvar } % can't embed ref to local VM ifelse .forceput pop % LocalFontDirectory is local, systemdict is global } .bind executeonly odef % Don't just copy (load) the definition of .setglobal: % it gets redefined for LL3. /setshared { /.setglobal .systemvar exec } odef .currentglobal setshared % See below for changes in save and restore. % ------ Fonts ------ % /selectfont % selectfont - { { 1 .argindex findfont 1 index dup type /arraytype eq { makefont } { scalefont } ifelse setfont pop pop } stopped { /selectfont .systemvar $error /errorname get signalerror } if } odef % undefinefont has to take local/global VM into account. /undefinefont % undefinefont - { //.FontDirectory 1 .argindex .forceundef % FontDirectory is readonly .currentglobal { % Current mode is global; delete from local directory too. //systemdict /LocalFontDirectory .knownget { 1 index .forceundef } executeonly % LocalFontDirectory is readonly if } { % Current mode is local; if there was a shadowed global % definition, copy it into the local directory. //systemdict /SharedFontDirectory .knownget { 1 index .knownget { //.FontDirectory 2 index 3 -1 roll .forceput } % readonly if } if } ifelse pop } odef % If we load a font into global VM within an inner save, the restore % will delete it from FontDirectory but not from SharedFontDirectory. % We have to handle this by making restore copy missing entries from % SharedFontDirectory to FontDirectory. Since this could slow down restore % considerably, we define a new operator .forcecopynew for this purpose. % Furthermore, if FAKEFONTS is in effect, we want global real fonts to % override fake local ones. We handle this by brute force. /restore % restore - { dup //restore /LocalFontDirectory .systemvar FAKEFONTS { mark % We want to delete a fake font from the local directory % iff the global directory now has no definition for it, % or a non-fake definition. 1 index dup { % Stack: lfd mark lfd key ... lfd key value length 1 gt { % This is a real local definition; don't do anything. pop } { % This is a fake local definition, check for global. //SharedFontDirectory 1 index .knownget { % A global definition exists, check for fake. length 1 eq { pop } { 1 index } ifelse } { % No global definition, delete the local one. 1 index } ifelse } ifelse } forall pop counttomark 2 idiv { .forceundef } executeonly repeat pop % readonly } if //SharedFontDirectory exch .forcecopynew pop .currentglobal .setglobal % Rebind FontDirectory according to current VM. pop } .bind odef end % level2dict