Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

gs AFPL 8.53 breaks my font inclusion?!

1 view
Skip to first unread message

ivo...@gmail.com

unread,
Dec 2, 2005, 9:54:25 AM12/2/05
to

Dear ghostscript experts:

I have a pdf file that I would like to "distill" (or run through
[xpdf's] pdf2ps) under gentoo linux. My gs AFPL 8.53 installation no
longer does this, complaining about an invalid file access, while (I
believe) my old 7.07 non-AFPL installation did this just fine.

$ file /usr/local/share/texmf/fonts/type1/yandy/lbr.pfb
/usr/local/share/texmf/fonts/type1/yandy/lbr.pfb: PostScript Type 1
font program data

$ ps2pdf testincfonts.pdf
Error: /invalidfileaccess in --.libfile--
Operand stack:
--dict:4/4(L)-- F7 1 --dict:5/5(L)-- --dict:5/5(L)--
LucidaBright LucidaBright Font LucidaBright 500015
LucidaBright --nostringval-- LucidaBright
(/usr/local/share/texmf/fonts/type1/yandy/lbr.pfb)
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval--
--nostringval-- 2 %stopped_push --nostringval-- --nostringval--
--nostringval-- false 1 %stopped_push 1 3 %oparray_pop
1 3 %oparray_pop 1 3 %oparray_pop --nostringval--
--nostringval-- 2 1 1 --nostringval-- %for_pos_int_continue
--nostringval-- --nostringval-- --nostringval-- --nostringval--
%array_continue --nostringval-- false 1 %stopped_push
--nostringval-- %loop_continue --nostringval-- --nostringval--
--nostringval-- --nostringval-- --nostringval-- 7 10
%oparray_pop 8 10 %oparray_pop --nostringval--
--nostringval-- --nostringval-- --nostringval-- --nostringval--
false 1 %stopped_push 11 11 %oparray_pop --nostringval--
--nostringval-- --nostringval-- --nostringval-- --nostringval--
%array_continue --nostringval-- --nostringval-- --nostringval--
%loop_continue --nostringval-- 14 12 %oparray_pop
--nostringval--
Dictionary stack:
--dict:1124/1686(ro)(G)-- --dict:2/20(G)-- --dict:75/200(L)--
--dict:75/200(L)-- --dict:105/127(ro)(G)-- --dict:258/347(ro)(G)--
--dict:21/24(L)-- --dict:4/6(L)-- --dict:20/20(L)--
--dict:10/13(L)-- --dict:17/17(ro)(G)-- --dict:1124/1686(ro)(G)--
Current allocation mode is local
AFPL Ghostscript 8.53: Unrecoverable error, exit code 1

So, the lbr.pfb font file exists and is readable, but somehow
ghostscript does not find it, despite there being the fully qualified
fontname. Or am I misinterpreting the cause of this error? Help
appreciated.

Sincerely,

/ivo welch

ivo...@gmail.com

unread,
Dec 4, 2005, 12:08:38 PM12/4/05
to

The problem is caused by the -dSAFER option in the ps2pdf* scripts.
Running GS without this option works.

My guess is that this is a bug.

/iaw

ivo...@gmail.com

unread,
Dec 5, 2005, 8:08:25 PM12/5/05
to

ok, the folks at artifex were nice enough to tell me why.

the -dSAFER switch is now the default for ps2pdf*. apparently, the gs
man page is outdated, because it mentions only the outlawing of
deletefile and renamefile. but gs 8.53 also disables font reading
outside the designated directories. to tell gs that these fonts can
be included,

export GS_LIB=/usr/local/share/texmf/fonts/type1/yandy:$GS_LIB

you can also change to the older set of file access rule by changing
gs_init.ps to

*** lib/gs_init.ps Wed Nov 23 09:44:38 2005
--- ./gs_init.ps Sun Dec 4 11:16:18 2005
***************
*** 1920,1925 ****
--- 1920,1926 ----
SAFETY /safe get not {
<<
/PermitFileReading [
+ (*)
currentuserparams /PermitFileReading get aload pop
/FONTPATH .systemvar (*) .generate_dir_list_templates
% Library files :


hope this helps.

/iaw

0 new messages