原因は何か突き止めたいことでしょう
fedora5 日本語psを印刷しようとすると,エラー.
以下,道のり.
エラーログを見る.
# tail /var/log/cups/error_logI [10/Apr/2006:15:07:28 +0900] Adding start banner page "none" to job 29.
I [10/Apr/2006:15:07:28 +0900] Adding end banner page "none" to job 29.
I [10/Apr/2006:15:07:28 +0900] Job 29 queued on 'pp9100' by 'hoge'.
I [10/Apr/2006:15:07:28 +0900] Started filter /usr/lib64/cups/filter/pstops (PID 32015) for job 29.I [10/Apr/2006:15:07:28 +0900] Started filter /usr/lib64/cups/filter/foomatic-rip (PID 32016) for job 29.
I [10/Apr/2006:15:07:28 +0900] Started backend /usr/lib64/cups/backend/lpd (PID 32017) for job 29.
E [10/Apr/2006:15:07:28 +0900] PID 32016 stopped with status 3!
I [10/Apr/2006:15:07:28 +0900] Hint: Try setting the LogLevel to "debug" to find out more.
Try setting the LogLevel to "debug"
は,/etc/cups/cupsd.conf で変更する.
「LogLevel info」を「LogLevel debug」に変更.
cups の設定変更を反映させる.
# service cups reload
で,もう一度印刷を試みて失敗させて /var/log/cups/error_log
を見ると,詳しいログが残っている.
見てみると,
となってる.
...
D [10/Apr/2006:15:21:04 +0900] [Job 33] Can't find the font file /usr/share/fonts/japanese/TrueType/sazanami-mincho.ttf
D [10/Apr/2006:15:21:04 +0900] [Job 33] Error: /undefinedfilename in findfont
...
sazanami-mincho.ttf はipam.ttf をリンクさせている.
そこでリンクを消去し,
# cd /usr/share/fonts/japanese/TrueType/
# ls -l sazanami-mincho.ttf
lrwxrwxrwx 1 root root 8 Apr 3 16:31 sazanami-mincho.ttf -> ipam.ttf
元の実体(ディレクトリ gomi に残してあるとする)をコピーする.
# rm sazanami-mincho.ttf
rm: remove symbolic link `sazanami-mincho.ttf'? y
# rm sazanami-gothic.ttf
rm: remove symbolic link `sazanami-gothic.ttf'? y
# cp gomi/sazanami-mincho.ttf ./
# cp gomi/sazanami-gothic.ttf ./
これで印刷出来るようになったが,
当然 sazanami フォントで品質が悪いので,
ipa フォントを使うように変更.
どこの設定を読み込んでいるのかを知るためにエラーログを見ると
D [10/Apr/2006:15:53:37 +0900] [Job 36] Scanning /usr/share/fonts for fonts... 4 files, 4 scanned, 0 new fonts.
D [10/Apr/2006:15:53:38 +0900] [Job 36] Loading a TT font from /usr/share/fonts/japanese/TrueType/sazanami-mincho.ttf to emulate a CID font Sazanami-Mincho ... Done.
D [10/Apr/2006:15:53:38 +0900] [Job 36] Loading a TT font from /usr/share/fonts/japanese/TrueType/sazanami-gothic.ttf to emulate a CID font Sazanami-Gothic ... Done.
本当はCIDを使用するところをsazanami-*.ttfで代用しているらしい.
CID は /usr/share/ghostscript/8.15/ で設定?
と思ったが,わからず.
結局
と実体をコピーしておくことでうまくいった.
# cp ipam.ttf sazanami-mincho.ttf
# cp ipag.ttf sazanami-gothic.ttf
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
関係ない
/usr/share/texmf/pxdvi/vfontmap
を編集.
# For IPAfonts
min /usr/share/fonts/japanese/TrueType/ipam.ttf
nmin /usr/share/fonts/japanese/TrueType/ipam.ttf
goth /usr/share/fonts/japanese/TrueType/ipag.ttf
ngoth /usr/share/fonts/japanese/TrueType/ipag.ttf
jis /usr/share/fonts/japanese/TrueType/ipam.ttf
jisg /usr/share/fonts/japanese/TrueType/ipag.ttf
dm /usr/share/fonts/japanese/TrueType/ipam.ttf
dg /usr/share/fonts/japanese/TrueType/ipag.ttf
mgoth /usr/share/fonts/japanese/TrueType/ipag.ttf
fmin /usr/share/fonts/japanese/TrueType/ipam.ttf
fgoth /usr/share/fonts/japanese/TrueType/ipag.ttf