Ghostscript関係 のバックアップ(No.1) - アールメカブ

アールメカブ


Ghostscript関係 のバックアップ(No.1)


フォントパスの通っているディレクトリを見る

# gs -h Search path:

  . : /usr/share/ghostscript/8.15/lib :
  /usr/share/ghostscript/8.15/Resource : /usr/share/ghostscript/fonts :
  /usr/share/fonts/default/ghostscript : /usr/share/fonts/default/Type1 :
  /usr/share/fonts/default/amspsfnt/pfb :
  /usr/share/fonts/default/cmpsfont/pfb : /etc/ghostscript

/usr/share/ghostscript/fonts にフォントを追加することにする.

ディレクトリが無ければ作成.

# mkdir /usr/share/ghostscript/fonts

ここに .ttf をコピーしておく

例 ipam.ttf, ipag.ttf

cidfmap ファイル

/IPAGothic << /FileType? /TrueType? /Path (ipag.ttf) /CSI [(Japan1) 6] >> ; /IPAMincho << /FileType? /TrueType? /Path (ipam.ttf) /CSI [(Japan1) 6] >> ; % /IPAGothic-Regular /IPAGothic ; /IPAMincho-Regular /IPAMincho ; /Ryumin-Light /IPAMincho ; /GothicBBB-Medium /IPAGothic ; /HeiseiMin?-W3 /Ryumin-Light ; /HeiseiKakuGo?-W5 /GothicBBB-Medium ; /Adobe-Japan1 /Ryumin-Light ; /Adobe-Japan2 /Ryumin-Light ;