summaryrefslogtreecommitdiff
path: root/Resource
diff options
context:
space:
mode:
authorChris Liddell <chris.liddell@artifex.com>2023-02-27 15:19:34 +0000
committerChris Liddell <chris.liddell@artifex.com>2023-02-27 16:43:57 +0000
commitc229322420f29be4f75f88d6c2058ffaab12ff94 (patch)
tree66796b6aaea4ffc33f812a9d1d1c3cb1dcc16028 /Resource
parent5fd346cfbf6ec6ad3972fd33b888525edb241d02 (diff)
downloadghostpdl-c229322420f29be4f75f88d6c2058ffaab12ff94.tar.gz
Allow a -sFONTMAP= option to change the fontmap file
Stems from Bug 706267
Diffstat (limited to 'Resource')
-rw-r--r--Resource/Init/gs_fonts.ps7
1 files changed, 5 insertions, 2 deletions
diff --git a/Resource/Init/gs_fonts.ps b/Resource/Init/gs_fonts.ps
index 1b1f852aa..b1206c468 100644
--- a/Resource/Init/gs_fonts.ps
+++ b/Resource/Init/gs_fonts.ps
@@ -1,4 +1,4 @@
-% Copyright (C) 2001-2022 Artifex Software, Inc.
+% Copyright (C) 2001-2023 Artifex Software, Inc.
% All Rights Reserved.
%
% This software is provided AS-IS with no warranty, either express or
@@ -22,7 +22,10 @@
% Note that the "%%Replace " comment below provides the font map file name
% for compiling initialization files into executable. Most likely it should be
% consistent with the one specified here.
-/defaultfontmap (Fontmap) def
+/FONTMAP where
+{/FONTMAP get /defaultfontmap exch def}
+{/defaultfontmap (Fontmap) def}
+ifelse
% we have to set .languagelevel to 2 so the parser will accept the names
% '<<' and '>>', then we use a local definition here.