Bug 241953

Summary: ghostscript doesn't work with "MS Mincho" and "MS Gothic" from Windows Vista
Product: [openSUSE] openSUSE 10.2 Reporter: Mike Fabian <mfabian>
Component: PrintingAssignee: Dr. Werner Fink <werner>
Status: RESOLVED WONTFIX QA Contact: Johannes Meixner <jsmeix>
Severity: Normal    
Priority: P5 - None CC: coolo, shinkichi.yamazaki, tiwai, werner
Version: Final   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: arare-EUC-H.ps

Description Mike Fabian 2007-02-03 00:32:15 UTC
(I found that while investigating bug #241015).
Comment 1 Mike Fabian 2007-02-03 00:36:34 UTC
If "MS Mincho" and "MS Gothic" fonts are available, /usr/sbin/ghostscript-cjk
generates entries for these fonts into /usr/share/ghostscript/8.15/lib/cidfmap:

mike@nozomi:~$ grep -i ryumin.*ttc  /usr/share/ghostscript/8.15/lib/cidfmap
/Ryumin-Light << /FileType /TrueType /Path (/usr/share/fonts/truetype/msmincho.ttc) /SubfontID 0 /CSI [(Japan1) 2] >> ; % autogenerated by ghostscript-cjk-config
mike@nozomi:~$ grep -i gothicbbb.*ttc  /usr/share/ghostscript/8.15/lib/cidfmap
/GothicBBB-Medium << /FileType /TrueType /Path (/usr/share/fonts/truetype/msgothic.ttc) /SubfontID 0 /CSI [(Japan1) 2] >> ; % autogenerated by ghostscript-cjk-config
mike@nozomi:~$

With msmincho.ttc and msgothic.ttc from previous versions of Windows, this works.

With fonts of the same name from Windows Vista it doesn't work anymore.

Comment 2 Mike Fabian 2007-02-03 00:50:12 UTC
Error messages when using the sample file "article9.ps" from the ghostscript
package with the Windows Vista fonts:

mike@nozomi:~/Desktop$ gs /usr/share/ghostscript/8.15/examples/article9.ps
ESP Ghostscript 8.15 (2006-04-19)
Copyright (C) 2004 artofcode LLC, Benicia, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file COPYING for details.
Scanning /usr/X11R6/lib/X11/fonts/ for fonts... 0 files, 0 scanned, 0 new fonts.
Scanning /usr/share/fonts/ for fonts... 15 files, 15 scanned, 0 new fonts.
Loading a TT font from /usr/share/fonts/vista/msgothic.ttc to emulate a CID font GothicBBB-Medium ... ERROR: /rangecheck in --string--
Operand stack:
   48   GothicBBB-Medium-V   Font   GothicBBB-Medium-V   V   --nostringval--   FDepVector   --nostringval--   0   GothicBBB-Medium   CIDFont   true   GothicBBB-Medium   GothicBBB-Medium   --nostringval--   --dict:15/18(L)--   --nostringval--   90632   90632
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   1   3   %oparray_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   2   3   %oparray_pop   3   3   %oparray_pop   --nostringval--   --nostringval--   --nostringval--   6   4   %oparray_pop   --nostringval--   1   1   0   --nostringval--   %for_pos_int_continue   --nostringval--   11   5   %oparray_pop   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--   %array_continue   --nostringval--   --nostringval--   --nostringval--
Dictionary stack:
   --dict:1136/3371(ro)(G)--   --dict:0/20(G)--   --dict:114/200(L)--   --dict:47/65(ro)(G)--   --dict:3/10(L)--   --dict:38/50(ro)(G)--   --dict:28/50(ro)(G)--   --dict:16/40(L)--
Current allocation mode is local
Current file position is 1344
ESP Ghostscript 8.15.3: Unrecoverable error, exit code 1
mike@nozomi:~/Desktop$
Comment 3 Mike Fabian 2007-02-03 00:53:23 UTC
Created attachment 117233 [details]
arare-EUC-H.ps

small sample file to test the Mincho style font.

Error message with "MS Mincho" from Windows Vista:

mike@nozomi:~/Desktop$ gs ~/test-texts/arare-EUC-H.ps
ESP Ghostscript 8.15 (2006-04-19)
Copyright (C) 2004 artofcode LLC, Benicia, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file COPYING for details.
Scanning /usr/X11R6/lib/X11/fonts/ for fonts... 0 files, 0 scanned, 0 new fonts.
Scanning /usr/share/fonts/ for fonts... 15 files, 15 scanned, 0 new fonts.
Loading a TT font from /usr/share/fonts/vista/msmincho.ttc to emulate a CID font Ryumin-Light ... ERROR: /rangecheck in --string--
Operand stack:
   Ryumin-Light-EUC-H   Font   Ryumin-Light-EUC-H   EUC-H   --nostringval--   FDepVector   --nostringval--   0   Ryumin-Light   CIDFont   true   Ryumin-Light   Ryumin-Light   --nostringval--   --dict:15/18(L)--   --nostringval--   90632   90632
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   1   3   %oparray_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   1   3   %oparray_pop   2   3   %oparray_pop   --nostringval--   --nostringval--   --nostringval--   5   4   %oparray_pop   --nostringval--   1   1   0   --nostringval--   %for_pos_int_continue   --nostringval--   10   5   %oparray_pop   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--   %array_continue   --nostringval--   --nostringval--   --nostringval--
Dictionary stack:
   --dict:1136/3371(ro)(G)--   --dict:0/20(G)--   --dict:102/200(L)--   --dict:47/65(ro)(G)--   --dict:3/10(L)--   --dict:38/50(ro)(G)--   --dict:28/50(ro)(G)--   --dict:16/40(L)--
Current allocation mode is local
Current file position is 55
ESP Ghostscript 8.15.3: Unrecoverable error, exit code 1
mike@nozomi:~/Desktop$
Comment 4 Dr. Werner Fink 2007-02-05 09:41:29 UTC
Sorry but I do not have MS Windows nor MS Windows Vista nor I want to have.
Reopen only if you reassign to your self.