2012年1月2日月曜日

[FreeBSD] setting for xpdf kanji pdf file

1. defaultの/usr/local/share/xpdf/japanese/dot.xpdfrcのcMapDirにはaj16/CMapが足りないので
(2012/1/1時点現在)以下のように変更する

cMapDir Adobe-Japan1 /usr/local/share/fonts/adobe-cmaps/aj16/CMap
toUnicodeDir /usr/local/share/fonts/adobe-cmaps/aj16/CMap

2.それでも以下のようなフォントが足りない旨のエラーが出る場合には

Error: Couldn't find a font for 'Ryumin-Light-90ms-RKSJ-H'
Error: Couldn't find a font for 'Ryumin-Light-90ms-RKSJ-H'

dot.xpdfrcに以下の行を追加(漢字コードはSJISで)(まだ暫定なので、明朝系フォントもゴシックにマップしています)


displayNamedCIDFontTT MSGothic "/usr/local/share/fonts/
std.ja_JP/GothicBBB-Medium"
displayNamedCIDFontTT MSPGothic "/usr/local/share/fonts/
std.ja_JP/GothicBBB-Medium"
displayNamedCIDFontTT HGGothicEPRO "/usr/local/share/fonts/
std.ja_JP/GothicBBB-Medium"
displayNamedCIDFontTT MSゴシック "/usr/local/share/fonts/std.ja_JP/Go
thicBBB-Medium"
displayNamedCIDFontTT MSゴシック,Bold "/usr/local/share/fonts/std.ja_JP/Go
thicBBB-Medium"
displayNamedCIDFontTT MSPゴシック "/usr/local/share/fonts/std.ja_JP/Go
thicBBB-Medium"
displayNamedCIDFontTT MSPゴシック,Bold "/usr/local/share/fonts/std.ja_JP/Go
thicBBB-Medium"
displayNamedCIDFontTT MS明朝 "/usr/local/share/fonts/std.ja_JP/Go
thicBBB-Medium"
displayNamedCIDFontTT MS明朝,Bold "/usr/local/share/fonts/std.ja_JP/Go
thicBBB-Medium"
displayNamedCIDFontTT MSP明朝 "/usr/local/share/fonts/std.ja_JP/Go
thicBBB-Medium"
displayNamedCIDFontTT MSP明朝,Bold "/usr/local/share/fonts/std.ja_JP/Go
thicBBB-Medium"
displayNamedCIDFontTT @MSゴシック "/usr/local/share/fonts/std.ja_JP/G
othicBBB-Medium"
displayNamedCIDFontTT @MSゴシック,Bold "/usr/local/share/fonts/std.ja_JP/G
othicBBB-Medium"
displayNamedCIDFontTT @MSPゴシック "/usr/local/share/fonts/std.ja_JP/G
othicBBB-Medium"
displayNamedCIDFontTT @MSPゴシック,Bold "/usr/local/share/fonts/std.ja_JP/G
othicBBB-Medium"
displayNamedCIDFontTT @MS明朝 "/usr/local/share/fonts/std.ja_JP/G
othicBBB-Medium"
displayNamedCIDFontTT @MS明朝,Bold "/usr/local/share/fonts/std.ja_JP/G
othicBBB-Medium"
displayNamedCIDFontTT @MSP明朝 "/usr/local/share/fonts/std.ja_JP/G
othicBBB-Medium"
displayNamedCIDFontTT @MSP明朝,Bold "/usr/local/share/fonts/std.ja_JP/G
othicBBB-Medium"
displayNamedCIDFontTT MS-PMincho "/usr/local/share/fonts/
std.ja_JP/Ryumin-Light"
displayNamedCIDFontTT Ryumin-Light-90ms-RKSJ-H "/usr/local/shar
e/fonts/std.ja_JP/GothicBBB-Medium"
displayNamedCIDFontTT GothicBBB-Medium-90ms-RKSJ-H "/usr/lo
cal/share/fonts/std.ja_JP/GothicBBB-Medium"

0 件のコメント: