村田淳といいます。 FreeBSD5.4(PCは自作品)で、ghostscript で字が出ない (虎の絵はX11上とプリンタで出ますが、字を含むと X11上で瞬間何か描かれるがすぐ消える)問題です。 お分かりの方は教えてくださると助かります。
もしかすると、藤田さん([FreeBSD-users-jp 89684])の質問の内容と 同じかとも思うのですが… ちょっと長くなるのですが勘弁してください。 ghostscriptのバージョンは > gs -v GNU Ghostscript 7.07 (2003-05-17) Copyright (C) 2003 artofcode LLC, Benicia, CA. All rights reserved. です。インストールは FreeBSD 5.4-RELEASE-p6 の後藤大地著『FreeBSDビギ ナーズバイブル 改訂第二版』からです。 図が含まれる、STAR.ps (これは星ではなく、ある論文のスターグラフの図) をX11上で描かせようとすると > gs STAR.ps GNU Ghostscript 7.07 (2003-05-17) Copyright (C) 2003 artofcode LLC, Benicia, CA. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. Loading NimbusRomNo9L-Regu font from /usr/local/share/ghostscript/fonts/n021003l.pfb... 2139336 748406 1682712 386002 3 done. Error: /rangecheck in --get-- Operand stack: --nostringval-- --nostringval-- --nostringval-- descender 0 --nostringval-- 1 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 --nostringval-- 1 3 %oparray_pop 1 3 %oparray_pop .runexec2 --nostringval-- -- nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- -- nostringval-- --nostringval-- Dictionary stack: --dict:1059/1123(ro)(G)-- --dict:0/20(G)-- --dict:78/200 (L)-- --dict:40/50(L)-- --dict:1/17(L)-- --dict:5/17(L)-- --dict:2/4(L)-- --dict:13/14(ro)(G)-- Current allocation mode is local Current file position is 16143 GNU Ghostscript 7.07: Unrecoverable error, exit code 1 というエラーになってしまいます。 また、日本語を含む書類(ずいぶん前のjLatexのソースのdviファイルを dvipsしたもの)では > gs body.dvi.ps GNU Ghostscript 7.07 (2003-05-17) Copyright (C) 2003 artofcode LLC, Benicia, CA. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. Can't find (or can't open) font file /usr/local/share/ghostscript/Resource/Font/Ryumin-Light-H. Can't find (or can't open) font file Ryumin-Light-H. Substituting font Courier for Ryumin-Light-H. Loading NimbusMonL-Regu font from /usr/local/share/ghostscript/fonts/n022003l.pfb... 2119240 732214 1763096 457774 0 done. Error: /undefined in --get-- Operand stack: --dict:11/13(ro)(G)-- FDepVector 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-- --nostringval-- --nostringval-- Dictionary stack: --dict:1059/1123(ro)(G)-- --dict:0/20(G)-- --dict:77/200(L)-- --dict:99/300(L)-- Current allocation mode is local Current file position is 17369 GNU Ghostscript 7.07: Unrecoverable error, exit code 1 というエラーです。そこで、フォントの在りかを捜すと /usr/X11R6/lib/X11/fonts/TrueType# ls fonts.alias fonts.dir.sazanami mika.ttf fonts.alias.kochi fonts.dir.truetype mona.ttf fonts.alias.sazanami ipag.ttf sazanami-gothic.ttf fonts.alias.truetype ipagp.ttf sazanami-mincho.ttf fonts.cache-1 ipagui.ttf sazanami-mincho.ttf.ORG fonts.dir ipam.ttf wadalab-gothic.ttf fonts.dir.kochi ipamp.ttf watanabe-mincho.ttf fonts.dir.mika kochi-gothic-subst.ttf fonts.dir.mona kochi-mincho-subst.ttf です。平野さんのアドバイス([FreeBSD-users-jp 89336])を参考にして ghostscript-gnu-7.07_12 GNU Postscript interpreter ghostscript-gnu-commfont-7.07 GNU ghostscript with CJK font support gsfonts-8.11_2 Fonts used by GNU Ghostscript (or X) ja-ghostscript-gnu-jpnfont-7.07_2 GNU ghostscript with Japanese font support を事前に入れたはずなのですが(つもり)、CIDFnmapを確認してみると (*.ORGは村田が追加したもの) /usr/local/share/ghostscript/7.07/lib> ls -l CID* -r--r--r-- 1 root wheel 6646 3 10 15:06 CIDFnmap -r--r--r-- 1 root wheel 1289 3 10 15:06 CIDFnmap.ARP -r--r--r-- 1 root wheel 1242 3 10 15:06 CIDFnmap.Bae -r--r--r-- 1 root wheel 10330 3 10 15:06 CIDFnmap.CJK -r--r--r-- 1 root wheel 2069 3 10 15:06 CIDFnmap.Koc -r--r--r-- 1 root wheel 6672 2 21 00:31 CIDFnmap.ORG -r--r--r-- 1 root wheel 1859 3 10 15:06 CIDFnmap.Ore -r--r--r-- 1 root wheel 2519 3 10 15:06 CIDFnmap.Sol -r--r--r-- 1 root wheel 2367 3 10 15:06 CIDFnmap.Win -r--r--r-- 1 root wheel 1116 3 10 15:06 CIDFnmap.b5 -r--r--r-- 1 root wheel 1069 3 10 15:06 CIDFnmap.gb -r--r--r-- 1 root wheel 793 3 9 15:52 CIDFnmap.jp -r--r--r-- 1 root wheel 815 4 4 2005 CIDFnmap.jp.ORG -r--r--r-- 1 root wheel 1329 3 10 15:06 CIDFnmap.ksx -r--r--r-- 1 root wheel 6646 2 20 08:20 CIDFnmap.org -r--r--r-- 1 root wheel 3005 3 10 15:06 CIDFnmap.sj となるのですが、ここで、 /usr/local/share/ghostscript/7.07/lib> grep runlib CIDFnmap % Like Fontmap, .runlibfile is used in CIDFnmap to include other CIDFnmaps. %(CIDFnmap.Ore) .runlibfile %(CIDFnmap.ARP) .runlibfile %(CIDFnmap.Bae) .runlibfile %(CIDFnmap.Koc) .runlibfile %(CIDFnmap.Sol) .runlibfile %(CIDFnmap.Win) .runlibfile %(CIDFnmap.CJK) .runlibfile %(CIDFnmap.b5) .runlibfile %(CIDFnmap.gb) .runlibfile %(CIDFnmap.sj) .runlibfile %(CIDFnmap.ksx) .runlibfile となり、CIDFnmap は何も読んでいない(一つも%のコメントアウトが取れていない) ということになっているようです。ホントならここで、CIDFnmap.jp を読んでい れば、 /usr/local/share/ghostscript/7.07/lib> more CIDFnmap.jp % Japanese Truetype Fonts (Sazanami) /Sazanami-Mincho (/usr/X11R6/lib/X11/fonts/TrueType/ipam.ttf) 1 ; /Sazanami-Gothic (/usr/X11R6/lib/X11/fonts/TrueType/ipag.ttf) 1 ; % % Convenient aliases for PS files on Japanese PostScript printer % /Adobe-Japan1 /Sazanami-Mincho ; /Ryumin-Light /Sazanami-Mincho ; /Ryumin-Light-H /Sazanami-Mincho ; /Ryumin-Light-V /Sazanami-Mincho ; /GothicBBB-Medium /Sazanami-Gothic ; /GothicBBB-Medium-H /Sazanami-Gothic ; /GothicBBB-Medium-V /Sazanami-Gothic ; /HeiseiMin-W3H /Sazanami-Mincho ; /HeiseiKakuGo-W5H /Sazanami-Gothic ; /FutoMinA101-Bold /Sazanami-Mincho ; /FutoMinA101-Bold-H /Sazanami-Mincho ; /FutoMinA101-Bold-V /Sazanami-Mincho ; /FutoGoB101-Bold /Sazanami-Gothic ; /FutoGoB101-Bold-H /Sazanami-Gothic ; /FutoGoB101-Bold-V /Sazanami-Gothic ; と、ここで Ryumin-Light-H が有効になるのかな? と思うのですが。 お分かりの方がいらっしゃったら、教えてください。お願いします。 村田淳(三重県在住)
