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

bugzilla-daemon at ghostscript.com bugzilla-daemon at ghostscript.com
Mon Feb 14 04:17:37 UTC 2011


http://bugs.ghostscript.com/show_bug.cgi?id=691955

--- Comment #4 from Dickson <iswslui at ust.hk> 2011-02-14 04:17:34 UTC ---
Thanks for your help.

(In reply to comment #3)
> (In reply to comment #2)
> > Question: Is any config or option wrong in installation?
> I'm afraid I don't know, I don't have a Solaris system to check on, hopefully
> someone else can try this.
> > Question: what's wrong?
> Can't tell from the above. Please retry without -dPARANOIDSAFER and without
> -dQUIET. The QUIET is probably discarding useful debugging information.
> PARANOIDSAFER may be doing something to prevent local/relative directory usage.

Without -dPARANOIDSAFER, it can finish the conversion but gsview fails to open
this ps file.

With -dPARANOIDSAFER, it has an error and exit. The error message is:
resmp FindResource beg MHei-Medium
resmp ResourceFileName beg MHei-Medium
resmp ResourceFileName : have a map record.
resmp ResourceFileName : record is active.
resmp ResourceFileName beg hei
resmp ResourceFileName : have a map record.
resmp ResourceFileName : record is active.
resmp ResourceFileName : retrieving
/usr/openwin/lib/locale/zh_TW.BIG5/X11/fonts/TT/hei.ttf
resmp ResourceFileName end
resmp ResourceFileName : retrieving
/usr/openwin/lib/locale/zh_TW.BIG5/X11/fonts/TT/hei.ttf
resmp ResourceFileName end
resmp FindResource beg hei
resmp ResourceFileName beg hei
resmp ResourceFileName : have a map record.
resmp ResourceFileName : record is active.
resmp ResourceFileName : retrieving
/usr/openwin/lib/locale/zh_TW.BIG5/X11/fonts/TT/hei.ttf
resmp ResourceFileName end
fntem TranslateCSI beg
fntem TranslateCSI end
Loading a TT font from /usr/openwin/lib/locale/zh_TW.BIG5/X11/fonts/TT/hei.ttf
to emulate a CID font hei ... 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:294/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




*******************************************************************************

> If this continues to fail then :
> Instead of trying a full blown PDF file we need to eliminate the possibilities.
> Either create a text file that contains the following and send it to GS, or
> type directly at the GS prompt:
> /hei /CIDFont findresource pop
> If that does not produce an error then continue with:
> /MHei-Medium /CIDFont findresource pop
> If both the above succeed then try:
> /UniCNS-UCS2-H /CMap findresource pop
> Then finally:
> /hei-UniCNS-UCS2-H findfont pop
> /MHei-Medium-UniCNS-UCS2-H findfont pop
> Somewhere along the line this should fail, please post the error messages.


In GS prompt, without 
------------------------------------------------------------------------
# /usr/local/bin/gs -sDEVICE=cups
-I/usr/local/share/ghostscript/9.00/Resource/Init
GPL Ghostscript  9.00 (2010-09-14)
Copyright (C) 2010 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
INFO: Start rendering...
INFO: Processing page 1...
GS>/MHei-Medium-UniCNS-UCS2-H findfont pop
Loading a TT font from /usr/openwin/lib/locale/zh_TW.BIG5/X11/fonts/TT/hei.ttf
to emulate a CID font hei ... Done.
GS>quit
INFO: Rendering completed
#
#

In GS prompt, with-dPARANOIDSAFER
------------------------------------------------------------------------
# /usr/local/bin/gs -sDEVICE=cups
-I/usr/local/share/ghostscript/9.00/Resource/Init -dPARANOIDSAFER
GPL Ghostscript  9.00 (2010-09-14)
Copyright (C) 2010 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
INFO: Start rendering...
INFO: Processing page 1...
GS>/MHei-Medium-UniCNS-UCS2-H findfont pop
Error: /invalidfileaccess in /findfont
Operand stack:
   MHei-Medium-UniCNS-UCS2-H
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--  
--nostringval--   2   %stopped_push   --nostringval--   --nostringval--  
%loop_continue   --nostringval--   --nostringval--   false   1   %stopped_push 
 .runexec2   --nostringval--   --nostringval--   --nostringval--   2  
%stopped_push   --nostringval--   1868   1   3   %oparray_pop
Dictionary stack:
   --dict:1153/1684(ro)(G)--   --dict:0/20(G)--   --dict:77/200(L)--
Current allocation mode is local
Current file position is 36

In GS prompt, with -I/usr/local/share/ghostscript/9.00/Resource/Init
------------------------------------------------------------------------
# /usr/local/bin/gs -sDEVICE=cups
GPL Ghostscript  9.00 (2010-09-14)
Copyright (C) 2010 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
INFO: Start rendering...
INFO: Processing page 1...
GS>/MHei-Medium-UniCNS-UCS2-H findfont pop
Can't find (or can't open) font file
%rom%Resource/Font/MHei-Medium-UniCNS-UCS2-H.
Can't find (or can't open) font file MHei-Medium-UniCNS-UCS2-H.
Querying operating system for font files...
^C#


Question 1 : Why do I always to use the switch
-I/usr/local/share/ghostscript/9.00/Resource/Init
? How can I set this to be default value?

Question 2 : In GS prompt, I can load the font. However, in gs command, still
fails (Error: /invalidfileaccess in findresource). Why? What's wrong?

Question 3 : Under the folder
"/usr/openwin/lib/locale/zh_TW.BIG5/X11/fonts/TT/", I use softlink to point
hei.ttf to ming.ttf. In cidfmap file, no matter what I map MHei-Medium to
hei.ttf or ming.ttf. The result is the same (error). Any further testing for my
case?

# ls -la
total 50998
drwxr-xr-x   2 root     bin            5 Feb  8 18:27 .
drwxr-xr-x   4 root     bin            4 Aug  4  2010 ..
-rw-r--r--   1 root     other          2 Feb 14 11:12 fonts.dir
lrwxrwxrwx   1 root     root           8 Feb  8 18:27 hei.ttf -> ming.ttf
-rw-r--r--   1 root     root     26044880 Jan 28 15:15 ming.ttf

-- 
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