[gs-bugs] [Bug 691955] Missing CIDFmap?

bugzilla-daemon at ghostscript.com bugzilla-daemon at ghostscript.com
Fri Feb 11 09:48:04 UTC 2011


--- Comment #2 from Dickson <iswslui at ust.hk> 2011-02-11 09:48:03 UTC ---
(In reply to comment #1)
> (In reply to comment #0)
> > ghostscript has an error. When I check and debug with using gs, I find that
> > there is no any CIDfmap or related cid files in
> > "/usr/local/share/ghostscript/9.00/lib".
> The cidfamp file is in gs/Resource/Init, it was moved from the lib directory
> some time ago.

After compile and install, the following folders are not existed 
But gs will search the following path:
Search path:
   %rom%Resource/Init/ : %rom%lib/ :
   /usr/local/share/ghostscript/9.00/Resource/Init :
   /usr/local/share/ghostscript/9.00/lib :
   /usr/local/share/ghostscript/9.00/Resource/Font :
   /usr/local/share/ghostscript/fonts :
   /usr/local/share/fonts/default/ghostscript :
   /usr/local/share/fonts/default/Type1 :
   /usr/local/share/fonts/default/TrueType : /usr/lib/DPS/outline/base :
   /usr/openwin/lib/X11/fonts/Type1 : /usr/openwin/lib/X11/fonts/TrueType :

Question: Is any config or option wrong in installation?

> > Question: How can I add back these CIDfmap and related cid files to Ghostscript
> > 9.00? Or any wrong setting? Thanks.
> GS uses the ROM file system by default, to use a different cidfmap to the one
> built into GS you need to specify the directory to search using the -I switch.
> So a common invocation might be:
> ./gs -I/usr/local/share/ghostscript/9.00/Resource/Init
> But you can create or copy the the file to any convenient location and point
> Ghostscript to it.

I copy the whole "Resource" folder from the source directory to
/usr/local/share/ghostscript/9.00/. I modify the cidfmap file in /Resource/Init
as follows:

/hei <<
        /FileType /TrueType
        /Path (/usr/openwin/lib/locale/zh_TW.BIG5/X11/fonts/TT/hei.ttf)
        /SubfontID 0
        /CSI [(CNS1) 1] >> ;
/MHei-Medium            /hei    ;


And then run the following command:

# /usr/local/bin/gs -dQUIET -dPARANOIDSAFER -dNOPAUSE
-I/usr/local/share/ghostscript/9.00/Resource/Init -dBATCH -dNOMEDIAATTRS
-sDEVICE=cups -sOUTPUTFILE=sam.ps -c -f sam.pdf
INFO: Start rendering...
INFO: Processing page 1...
Error: /invalidfileaccess in findresource
Operand stack:
   --dict:6/15(L)--   F2   8   --dict:5/5(L)--   --dict:5/5(L)--  
MHei-Medium-UniCNS-UCS2-H   --dict:10/12(ro)(G)--   --nostringval--  
CIDFontObject   --dict:7/7(L)--   --dict:7/7(L)--   MHei-Medium   CIDFont  
true   MHei-Medium   MHei-Medium   true   hei   false   hei   --dict:15/16(G)--
  (/usr/openwin/lib/locale/zh_TW.BIG5/X11/fonts/TT/hei.ttf)   (r)
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--  
--nostringval--   2   %stopped_push   --nostringval--   --nostringval--  
--nostringval--   false   1   %stopped_push   1910   1   3   %oparray_pop  
1909   1   3   %oparray_pop   1893   1   3   %oparray_pop   --nostringval--  
--nostringval--   2   1   2   --nostringval--   %for_pos_int_continue  
--nostringval--   --nostringval--   --nostringval--   --nostringval--  
%array_continue   --nostringval--   false   1   %stopped_push   --nostringval--
  %loop_continue   --nostringval--   --nostringval--   --nostringval--  
--nostringval--   --nostringval--   --nostringval--   %array_continue  
--nostringval--   --nostringval--   --nostringval--   --nostringval--  
--nostringval--   %loop_continue   --nostringval--   --nostringval--   1861  
13   9   %oparray_pop   findresource   %errorexec_pop   --nostringval--  
--nostringval--   --nostringval--   --nostringval--   --nostringval--  
--nostringval--   --nostringval--   --nostringval--   --nostringval--
Dictionary stack:
   --dict:1154/1684(ro)(G)--   --dict:1/20(G)--   --dict:82/200(L)--  
--dict:82/200(L)--   --dict:108/127(ro)(G)--   --dict:293/300(ro)(G)--  
--dict:23/30(L)--   --dict:6/8(L)--   --dict:25/40(L)--   --dict:20/26(ro)(G)--
Current allocation mode is global
GPL Ghostscript  9.00: Unrecoverable error, exit code 1
INFO: Rendering completed

Question: what's wrong?

Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the gs-bugs mailing list