Ubuntu 12.10で.fonts.confが使えない

~/.fonts.confを作って弄っても何か設定が反映されなかったので、何でだろうと思ったら、次のエラーが出ていることに気付いた。

Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 9: reading configurations from ~/.fonts.conf is deprecated.

50-user.confの9行目が何かアレらしいので、見てみたら次のようになっていた。

<include ignore_missing="yes" deprecated="yes">~/.fonts.conf</include>

多分deprecatedをnoにすれば動くんだろうが、コメントにこう書かれてあった。

<!-- the following elements will be removed in the future -->

そこで、~/.fonts.confの場所を変更することにした。

mkdir ~/.config/fontconfig

mv ~/.fonts.conf ~/.config/fontconfig/fonts.conf

これでOK。