▼スレッド
│
└◇637:ghostscript のフォント [MSだす。] 10/08 20:36
└◇641:Re:ghostscript のフォント [な] 10/09
└◇642:Re[2]:ghostscript のフォント [MSだす。] 10/09 <
"MSだす。"です。スレッド一覧
ghostscript で、Times-Roman のようなごく
基本的なフォントが使えずに困っています。
Cygwin+XFree86 上で、XFig を使っているの
ですが(どこからもってきたのか忘れてしま
いましたが、多分
http://www.cs.usask.ca/grads/wew036/latex/xfig.html
です)、テキストの入った図をPDF形式で出力
しようとしたところで、"invalidfont "と言
われてしまい、出力に失敗してしまうのです。
このエラーは、直接には ghostscrit からの
もので、実際おなじファイルをPS形式に保存
し、ghostscript で表示しようとすると、以
下のようになります。
~:$ /usr/X11R6/bin/gs test.ps
GNU Ghostscript 7.05 (2002-04-22)
Copyright (C) 2002 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 n021003l.pfb.
Can't find (or can't open) font file /Resource/Font/NimbusRomNo9L-Regu.
Can't find (or can't open) font file NimbusRomNo9L-Regu.
Can't find (or can't open) font file /Resource/Font/NimbusRomNo9L-Regu.
Can't find (or can't open) font file NimbusRomNo9L-Regu.
Substituting font Courier for NimbusRomNo9L-Regu.
Can't find (or can't open) font file n022003l.pfb.
Can't find (or can't open) font file /Resource/Font/NimbusMonL-Regu.
Can't find (or can't open) font file NimbusMonL-Regu.
Can't find (or can't open) font file /Resource/Font/NimbusMonL-Regu.
Can't find (or can't open) font file NimbusMonL-Regu.
Unable to substitute for font.
Error: /invalidfont in findfon
Operand stack:
--nostringval-- Times-Roman Font Times-Roman 425083 Times-Roman -
-nostringval-- Courier NimbusMonL-Regu (NimbusMonL-Regu) NimbusMonL-Regu
(NimbusMonL-Regu) NimbusMonL-Regu
Execution stack:
(以下、stackの情報が続く。)
/usr/share/ghostscript/7.05/lib/Fontmap.GS
で Times-Roman は NimbusRomNo9L-Regu に、
さらに NimbusRomNo9L-Regu は
n021003l.pfb に mapping されているので、
n021003l.pfb があればいいように思うので
す。またこのファイルは
gnu-gs-fonts-std-6.0.tar.gz
に含まれているものです。
/usr/doc/Cygwin/ghostscript-7.05.README
によるとこれは、ghostscript をビルドする
のに必須なものです。
何故、このような基本的なフォントが無い、
(または、使えない?)のでしょう。
どのように解決したらよいでしょう?
どなたか御存知の方、お願いします。
Cygwin の GhostScript は使っていませんが、スレッド一覧
$ tar jtf release/ghostscript/ghostscript-base/ghostscript-base-7.05-1.tar.bz2 | grep n021003l
usr/share/ghostscript/fonts/n021003l.afm
usr/share/ghostscript/fonts/n021003l.pfb
usr/share/ghostscript/fonts/n021003l.pfm
ですので、ghostscript-base が入っていない、に一票。
レス、ありがとうございます。スレッド一覧
おかげで解決しました。
ghostscript-baseは入れていたのですが、何
故か
/usr/share/ghostscript/fonts
がありませんでした。
(自分で消してしまったのだろうか…)
自分で、わけもまからず、
/usr/share/ghostscript/7.05/fonts
とか作っていたり、-sFONTPATH=、パス通そ
うとしたりしていました。
結局、ghostscript-base を入れなおしたら
解決いたしました。
これで、XFigも使えるようになりました。
感謝、感謝です。
MSだす。