[gs-devel] Additional Fonts in Gs 8.62
Ray Johnston
Ray.Johnston at Artifex.com
Fri Oct 31 09:31:43 PDT 2008
Hi Daniel,
The '-dSAFER' option does limit the paths (directories/folders) that can
be accessed by Ghostscript. There are three different lists of paths
that control reading, writing and control (renaming, deleting).
The SAFER option executes .locksafe (a ghostscript specific PS operator
defined in gs_init.ps) that appends the normal 'LIBPATH' paths and the
GenericResourceDir to the list of paths allowed to be read, then locks
the state so that the list cannot be changed.
The easiest way to make a directory accessible for reading when using
-dSAFER is to add it to the LIBPATH list with -I or using the GS_LIB
environment variable. For example:
gs -I"%/usr/X11R6/lib/X11/fonts/arialuni.ttf" -dSAFER ...
The other way is more involved: setting the PermitFileReading userparam
then executing .locksafe to enter SAFER mode (don't use the -dSAFER
command line option).
I hope this helps.
Regards,
Ray
------------------------------------------------------------------------
Daniel Spannbauer wrote:
> Ok, I have an entry in lib/cidfmap the maps a Font to a truetype-Font.
>
> /GBZenKai-Medium << /FileType /TrueType /Path
> (%/usr/X11R6/lib/X11/fonts/arialuni.ttf) /SubfontID 0 /CSI [(GB1) 2] >> ;
>
> This works fine until I use the Option -dSafer.
> As I read in the man-Page this option prevents gs from loading external
> Files.
>
> How can I cange this? With this config a ps2pdf or something does give
> me an error.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ghostscript.com/pipermail/gs-devel/attachments/20081031/7c207fc1/attachment.htm
More information about the gs-devel
mailing list