DebianにM+IPAフォントのインストール
VMWareにDebianをインストールしたけれども、フォントがあまりきれいでないためM++IPAフォントをインストールする。
手順
(1) 下記からM++IPAフォントをダウンロードしてくる。
http://mix-mplus-ipa.sourceforge.jp/
ここでは、~/workにダウンロードしたとする。
(2) 落としてきたファイルを解凍する。
$ cd work/ $ tar jxf mixfont-mplus-ipa-TrueType-20060520p1.tar.bz2
(3) M++IPAフォントをフォントパスの通っているところにコピーする。
$ sudo mkdir /usr/share/fonts/truetype/M+ipa $ cd mixfont-mplus-ipa-TrueType-20060520p1/opfc-ModuleHP-1.1.1_withIPAFonts_and_Mplus/fonts/ $ sudo cp *.ttf /usr/share/fonts/truetype/M+ipa/
(4)defomaで使うためにhintファイルを作る
既に、ここやここにあるのでコピペする。
$ cd ~/work $ emacs ttf-M++ipa.hints
下記をコピペ
category truetype begin /usr/share/fonts/truetype/M+ipa/M+1P+IPAG.ttf Family = M+1P+IPAGothic FontName = M+1P+IPAGothic-Regular Encoding = Unicode Location = English Japanese Charset = ISO8859-1 JISX0208 JISX0201 JISX0212 GeneralFamily = Gothic Weight = Medium Width = variable Shape = Upright Priority = 20 X-Foundry = m+ipa X-Family = pgothic X-Weight = medium X-Slant = r Transform = Slant Boldize end category truetype begin /usr/share/fonts/truetype/M+ipa/M+2P+IPAG.ttf Family = M+2P+IPAPGothic FontName = M+2P+IPAPGothic-Regular Encoding = Unicode Location = English Japanese Charset = ISO8859-1 JISX0208 JISX0201 JISX0212 GeneralFamily = Gothic Weight = Medium Width = Variable Shape = Upright Priority = 20 X-Foundry = m+ipa X-Family = pgothic X-Weight = medium X-Slant = r Transform = Slant Boldize end
(5) defomaにインストール
$ chmod 644 ttf-M++ipa.hints $ sudo cp ttf-M++ipa.hints /etc/defoma/hints/ $ sudo defoma-font -vt register-all ttf-M++ipa.hints $ fc-cache -f -v
(6) 動作確認
きちんとインストールされたかどうか確認する。
Xを再起動して
$ xfontsel
fndryにm+ipaがあればOK.