Ubuntu 9.04 にメイリオ フォントを設定する|How to set Meiryo Fonts in Ubuntu 9.04

ls ~/.fonts/
.fonts/meiryob.ttc          .fonts/meiryoKeGothic.ttc
.fonts/meiryoKeGothicB.ttc  .fonts/meiryo.ttc
  • フォントキャッシュの再構築|rebuild font cache
fc-cache -fv ~/.fonts
    • fc-cache の説明|about fc-cache

fc-cache scans the font directories on the system and builds font information cache files for applications using fontconfig for their font handling.

  • .fonts.conf の作成|create .fonts.conf file
cp /etc/fonts/conf.avail/69-language-selector-ja-jp.conf ~/.fonts.conf
  • .fonts.conf を編集|edit .fonts.conf file
<fontconfig>
        <match target="pattern">
                <test qual="any" name="family">
                        <string>sans-serif</string>
                </test>
                <edit name="family" mode="prepend" binding="strong">
                        <string>Meiryo</string>     
                </edit>
        </match>
        <match target="pattern">
                <test qual="any" name="family">
                        <string>monospace</string>
                </test>
                <edit name="family" mode="prepend" binding="strong">
                        <string>MeiryoKe_Gothic</string>
                </edit>
        </match> 
</fontconfig>
  • OS の フォントの設定|configure os fonts
    • System > Preferences > Appearance > Fonts