LINUX環境構築/CentOS4.0/fontをIPAフォントにする

Last-modified: 2006-12-07 (木) 12:51:10
% wget http://www.grass-japan.org/FOSS4G/ipafonts/grass5.0.3_i686-pc-linux-i18n-ipafull-gnu_bin.tar.gz
% wget http://www.grass-japan.org/FOSS4G/ipafonts/grass5_i686-pc-linux-i18n-ipafull-gnu_install.sh
# sh grass5_i686-pc-linux-i18n-ipafull-gnu_install.sh grass5.0.3_i686-pc-linux-i18n-ipafull-gnu_bin.tar.gz /tmp/grass5 /tmp/bin
# mv /tmp/grass5/fonts/*.ttf /usr/share/fonts/ja/TrueType/
# sh /tmp/bin/grass5uninstall.sh
# cd /usr/share/fonts/ja/TrueType/
# mv kochi-mincho-subst.ttf kochi-mincho-subst.ttf.org
# mv kochi-gothic-subst.ttf kochi-gothic-subst.ttf.org
# ln -s /usr/share/fonts/ja/TrueType/ipam.ttf /usr/share/fonts/ja/TrueType/kochi-mincho-subst.ttf
# ln -s /usr/share/fonts/ja/TrueType/ipag.ttf /usr/share/fonts/ja/TrueType/kochi-gothic-subst.ttf
# mkfontdir
# mkfontscale
  • 設定は等幅フォント
  • プロポーショナルフォント(文字幅が変化するフォント)の場合は、
    • ipam.ttf, ipag.ttf のかわりにipamp.ttf, ipagp.ttfとする。

/etc/fonts/fonts.confの変更

  • Kochi **** を IPA**** に変更する
    diff /etc/fonts/fonts.conf.org /etc/fonts/fonts.conf | pukiwiki_cat
    78c78
    <              <family>Kochi Mincho</family>
    ---
    >              <family>IPAMincho</family>
    94c94
    <              <family>Kochi Gothic</family>
    ---
    >              <family>IPAGothic</family>
    306c306
    <                      <family>Kochi Mincho</family>
    ---
    >                      <family>IPAMincho</family>
    330c330
    <                      <family>Kochi Gothic</family>
    ---
    >                      <family>IPAGothic</family>
    354c354
    <                      <family>Kochi Gothic</family>
    ---
    >                      <family>IPAGothic</family>
    368c368
    <                      <string>Kochi Mincho</string>
    ---
    >                      <string>IPAMincho</string>
    384c384
    <                      <string>Kochi Gothic</string>
    ---
    >                      <string>IPAGothic</string>