Ghostscript関係 の変更点 - アールメカブ

アールメカブ


Ghostscript関係 の変更点



[[ここ>http://d.hatena.ne.jp/uniker/20060412]]を参照.

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

# 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		;

あるいは[[ここ>http://nox-insomniae.ddo.jp/insomnia/cat7/]]に

cidfmap の調整

Ghostscript の TrueType / OpenType フォント参照定義である $GSDIR/8.54/lib/cidfmap を updmap のマップに合わせ修正する.以下の CJK 関連の定義 (部分) には,もともとの日中韓フォントの設定も含んでいるが,/ipam, /ipag, /gbsn00lp, /gkai00mp, /bsmi00lp, /bkai00mp のエントリは updmap マップに合わせ追加した定義である.updmap で参照するフォントマップ,例えば ptex-ipa.map に ipam.ttf が指定されていると,dvips がフォント名称として ipam-H 出力する結果,Ghostscript は cidfmap の /ipam エントリの指定を参照するためである.これがないと dvips が出力するフォントを Ghostscript が参照できない.

/Ryumin-Light        /IPAMincho  ;
/Ryumin-Medium       /IPAMincho  ;
/GothicBBB-Medium    /IPAGothic  ;
...
/IPAMincho 
%% Japanese IPA Fonts
<< /FileType /TrueType  /CSI [(Japan1) 6]
/Path (/usr/X11R6/lib/X11/fonts/TrueType/ipam.ttf) >> ;
/IPAGothic 
<< /FileType /TrueType  /CSI [(Japan1) 6]
/Path (/usr/X11R6/lib/X11/fonts/TrueType/ipag.ttf) >> ;
%%% added from ptex-ipa.map
/ipam 
<< /FileType /TrueType /CSI [(Japan1) 6] 
/Path (/usr/X11R6/lib/X11/fonts/TrueType/ipam.ttf) >> ;
/ipag 
<< /FileType /TrueType /CSI [(Japan1) 6] 
/Path (/usr/X11R6/lib/X11/fonts/TrueType/ipag.ttf) >> ;
%% Chinese Arphic Fonts
%% Chinese Simplified
/BousungEG-Light-GB  
<< /FileType /TrueType   /CSI [(GB1) 5] 
/Path (/usr/X11R6/lib/X11/fonts/TrueType/gbsn00lp.ttf) >> ;
/GBZenKai-Medium  
<< /FileType /TrueType   /CSI [(GB1) 5] 
/Path (/usr/X11R6/lib/X11/fonts/TrueType/gkai00mp.ttf) >> ;
%% Chinese Traditional
/ShanHeiSun-Light  
<< /FileType /TrueType   /CSI [(CNS1) 5]
/Path (/usr/X11R6/lib/X11/fonts/TrueType/bsmi00lp.ttf) >> ;
/ZenKai-Medium  
<< /FileType /TrueType   /CSI [(CNS1) 5]
/Path (/usr/X11R6/lib/X11/fonts/TrueType/bkai00mp.ttf) >> ;
%%% added from otf-cktx.map
/gbsn00lp 
<< /FileType /TrueType /CSI [(GB1) 5]  
/Path (/usr/X11R6/lib/X11/fonts/TrueType/gbsn00lp.ttf) >> ;
/gkai00mp 
<< /FileType /TrueType /CSI [(GB1) 5]  
/Path (/usr/X11R6/lib/X11/fonts/TrueType/gkai00mp.ttf) >> ;
/bsmi00lp   
<< /FileType /TrueType /CSI [(CNS1) 5] 
/Path (/usr/X11R6/lib/X11/fonts/TrueType/bsmi00lp.ttf) >> ;
/bkai00mp 
<< /FileType /TrueType /CSI [(CNS1) 5] 
/Path (/usr/X11R6/lib/X11/fonts/TrueType/bkai00mp.ttf) >> ;
%% Korean Un Fonts
/UnBatang      
<< /FileType /TrueType /CSI [(Korea1) 2] 
/Path (/usr/X11R6/lib/X11/fonts/TrueType/UnBatang.ttf) >> ;
/UnBatang-Bold  
<< /FileType /TrueType /CSI [(Korea1) 2] 
/Path (/usr/X11R6/lib/X11/fonts/TrueType/UnBatangBold.ttf) >> ;
/UnDotum        
<< /FileType /TrueType /CSI [(Korea1) 2] 
/Path (/usr/X11R6/lib/X11/fonts/TrueType/UnDotum.ttf) >> ;
/UnDotum-Bold   
<< /FileType /TrueType /CSI [(Korea1) 2] 
/Path (/usr/X11R6/lib/X11/fonts/TrueType/UnDotumBold.ttf) >> ;
/UnGraphic      
<< /FileType /TrueType /CSI [(Korea1) 2] 
/Path (/usr/X11R6/lib/X11/fonts/TrueType/UnGraphic.ttf) >> ;
/UnGraphic-Bold 
<< /FileType /TrueType /CSI [(Korea1) 2] 
/Path (/usr/X11R6/lib/X11/fonts/TrueType/UnGraphicBold.ttf) >> ; 
/UnGungseo      
<< /FileType /TrueType /CSI [(Korea1) 2] 
/Path (/usr/X11R6/lib/X11/fonts/TrueType/UnGungseo.ttf) >> ;
/UnPilgi        
<< /FileType /TrueType /CSI [(Korea1) 2] 
/Path (/usr/X11R6/lib/X11/fonts/TrueType/UnPilgi.ttf) >> ;
/UnPilgi-Bold   
<< /FileType /TrueType /CSI [(Korea1) 2] 
/Path (/usr/X11R6/lib/X11/fonts/TrueType/UnPilgiBold.ttf) >>