[gs-bugs] [Bug 691513] New: problems with TimesNewRoman font

bugzilla-daemon at ghostscript.com bugzilla-daemon at ghostscript.com
Fri Jul 30 13:53:25 UTC 2010


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

           Summary: problems with TimesNewRoman font
           Product: Fonts
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P4
         Component: free URW
        AssignedTo: support at artifex.com
        ReportedBy: voipas at gmail.com
         QAContact: gs-bugs at ghostscript.com
   Estimated Hours: 0.0


Created an attachment (id=6585)
 --> (http://bugs.ghostscript.com/attachment.cgi?id=6585)
pdf with TimesNewRoman font

Hi,

  I've a problem with one my customer. He sends me pdf documents and fonts are
TimesNewRoman. I'm using newest Ghostscript and distribution is Centos 5.5. The
output is:
/opt/bin/gs -dBATCH -dNOPAUSE -sDEVICE=pdfwrite
-sOutputFile=/root/pdfs/test2.pdf /root/pdfs/20100630144713_136.pdf
GPL Ghostscript 8.71 (2010-02-10)
Copyright (C) 2010 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Processing pages 1 through 1.
Page 1
Can't find CID font "TimesNewRoman".
Substituting CID font /Adobe-Identity for /TimesNewRoman, see
doc/Use.htm#CIDFontSubstitution.
Error: /undefinedresource in findresource
Operand stack:
   --dict:8/17(L)--   F0   12   --dict:7/7(L)--   --dict:7/7(L)--  
TimesNewRoman   --dict:10/12(ro)(G)--   --nostringval--   CIDFontObject  
--dict:8/8(L)--   --dict:8/8(L)--   Adobe-Identity   CIDFont   true  
Adobe-Identity   Adobe-Identity   NimbusRomNo9L-Regu   17   NimbusRomNo9L-Regu
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--  
--nostringval--   2   %stopped_push   --nostringval--   --nostringval--  
--nostringval--   false   1   %stopped_push   1878   1   3   %oparray_pop  
1877   1   3   %oparray_pop   1861   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--   --nostringval--   %array_continue  
--nostringval--   --nostringval--   --nostringval--   --nostringval--  
--nostringval--   %loop_continue   --nostringval--   --nostringval--   1829  
13   11   %oparray_pop   findresource   %errorexec_pop   --nostringval--  
--nostringval--   --nostringval--   --nostringval--   --nostringval--  
--nostringval--   --nostringval--   --nostringval--
Dictionary stack:
   --dict:1151/1684(ro)(G)--   --dict:1/20(G)--   --dict:75/200(L)--  
--dict:75/200(L)--   --dict:108/127(ro)(G)--   --dict:288/300(ro)(G)--  
--dict:22/25(L)--   --dict:6/8(L)--   --dict:21/40(L)--   --dict:1/1(ro)(G)--  
--dict:9/15(L)--   --dict:20/26(ro)(G)--
Current allocation mode is local
GPL Ghostscript 8.71: Unrecoverable error, exit code 1


In cidfmap I've made this change:
/Adobe-Identity /NimbusRomNo9L-Regu ;


I run this command with strace and I see :
open("/opt/share/ghostscript/8.71/Resource/Init/CIDFont/NimbusRomNo9L-Regu",
O_RDONLY) = -1 ENOENT (No such file or directory)

So I have created this directory and copied NimbusRomNo9L-Regu file, but I get
now this:
/opt/bin/gs -dBATCH -dNOPAUSE -sDEVICE=pdfwrite
-sOutputFile=/root/pdfs/test2.pdf /root/pdfs/20100630144713_136.pdf
GPL Ghostscript 8.71 (2010-02-10)
Copyright (C) 2010 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Processing pages 1 through 1.
Page 1
Can't find CID font "TimesNewRoman".
Substituting CID font /Adobe-Identity for /TimesNewRoman, see
doc/Use.htm#CIDFontSubstitution.
The substitute CID font "Adobe-Identity" is not provided either. Will exit with
error.
Error: /undefined in findresource
Operand stack:
   --dict:8/17(L)--   F0   12   --dict:7/7(L)--   --dict:7/7(L)--  
TimesNewRoman   --dict:10/12(ro)(G)--   --nostringval--   CIDFontObject  
--dict:8/8(L)--   --dict:8/8(L)--   Adobe-Identity
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--  
--nostringval--   2   %stopped_push   --nostringval--   --nostringval--  
--nostringval--   false   1   %stopped_push   1878   1   3   %oparray_pop  
1877   1   3   %oparray_pop   1861   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--   --nostringval--   %array_continue  
--nostringval--   --nostringval--   --nostringval--   --nostringval--  
--nostringval--   %loop_continue
Dictionary stack:
   --dict:1151/1684(ro)(G)--   --dict:1/20(G)--   --dict:75/200(L)--  
--dict:75/200(L)--   --dict:108/127(ro)(G)--   --dict:288/300(ro)(G)--  
--dict:22/25(L)--   --dict:6/8(L)--   --dict:21/40(L)--   --dict:1/1(ro)(G)--  
--dict:9/15(L)--
Current allocation mode is local
Last OS error: 2
GPL Ghostscript 8.71: Unrecoverable error, exit code 1


Can somebody help me with this problem?

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