summaryrefslogtreecommitdiff
path: root/Resource
diff options
context:
space:
mode:
authorChris Liddell <chris.liddell@artifex.com>2022-07-18 09:45:09 +0100
committerChris Liddell <chris.liddell@artifex.com>2022-07-18 10:09:54 +0100
commitb2571df1d5d26d8c3cf88fdb8adf77bbcae4e8dc (patch)
tree0deb6d6b6036b18559c71314ad70b3375a0156f6 /Resource
parentaca5ee2b827b2dc3a8bbcd0a721e0cca95f99294 (diff)
downloadghostpdl-b2571df1d5d26d8c3cf88fdb8adf77bbcae4e8dc.tar.gz
Bug 705652: Add user defined fontmap to permit read paths
The Postscript interpreter parses the Fontmap file during initialisation, so before file access permission enforcement has been activated, so a user defined fontmap file need not be added to the permit-file-read list. But pdfi parses the fontmap on demand, thus after file access permissions are active. So when calling pdfi from Postscript, the Postscript interpreter needs to add the file and path to the permit-file-read list so pdfi can access it.
Diffstat (limited to 'Resource')
-rw-r--r--Resource/Init/gs_fonts.ps1
1 files changed, 1 insertions, 0 deletions
diff --git a/Resource/Init/gs_fonts.ps b/Resource/Init/gs_fonts.ps
index 9ed9ca5c0..1b1f852aa 100644
--- a/Resource/Init/gs_fonts.ps
+++ b/Resource/Init/gs_fonts.ps
@@ -432,6 +432,7 @@ FONTPATH
/FONTMAP where
{
dup /FONTMAP get /FONTMAP exch [ exch //.pathlist exec] put
+ /FONTMAP dup where pop exch get {/PermitFileReading exch .addcontrolpath} forall
} if
% Try to enumerate native fonts registered with the os