# 更新至Ubuntu12.10后fontsconfig出现警告的解决办法

Fontconfig warning /etc/fonts/conf.d/99-language-selector-zh.conf line 11: Having multiple values inisn't supported and may not works as expected
Fontconfig warning: “/etc/fonts/conf.d/50-user.conf”, line 9: reading configurations from ~/.fonts.conf is deprecated.


Still no changes in the behavior in the latest version of fontconfig,
but it now warns when contains multiple values or contains
multiple s. this is because the behavior isn’t intuitive and
doesn’t work as expected necessarily. So you better consider to fix it
to make clearer what you want to do with it.

For solution, if you are expecting OR operator with that rule, add more
s or es. if you are expecting AND operator with that rule,
just add more s in that .

<test name="family" compare="contains" >
<string>Song</string>
<string>Sun</string>
<string>Kai</string>
<string>Ming</string>
</test>


<test name="family" compare="contains" >
<string>Song</string>
</test>
<test name="family" compare="contains" >
<string>Sun</string>
</test>
<test name="family" compare="contains" >
<string>Kai</string>
</test>
<test name="family" compare="contains" >
<string>Ming</string>
</test>


@依云 ：消除这个 deprecated 的警告的正确方法是把配置文件移到 ~/.config/fontconfig/fonts.conf。