Ubuntu开机出现:Fontconfig warning:"/etc/fonts/conf.d/65-droid-sans-fonts.conf"的解决办法

Ubuntu升级后可能会出现以下问题:

Fontconfig warning: "/etc/fonts/conf.d/65-droid-sans-fonts.conf", line 61: Having multiple values in <test> isn't supported and may not work as expected

这是由于Ubuntu在读取语言信息时,不支持多语言在同一个标签中,语言配置文件中格式有问题导致的,只需将文件调整为正确格式便可解决。

步骤:

1、sudo vim /etc/fonts/conf.d/65-droid-sans-fonts.conf 编辑65-droid-sans-fonts.conf 文件

2、将以下内容: 

    

<test name="lang" compare="not_eq">
    <string>zh-cn</string>
    <string>zh-sg</string>
    <string>zh-hk</string>
    <string>zh</string>
</test>

  

调整为:

    

<test name="lang" compare="not_eq">
    <string>zh-cn</string>
</test>
<test name="lang" compare="not_eq">
    <string>zh-sg</string>
</test>
<test name="lang" compare="not_eq">
    <string>zh-hk</string>
</test>
<test name="lang" compare="not_eq">
    <string>zh</string>
</test>

  

即每种语言在一个test标签中,如果有其他语言类似调整。

3、保存文件,重启。

 

本文参考自:http://blog.163.com/xh_ding/blog/static/193903289201364115937389/

posted @ 2016-12-04 14:46  sp.Lee  阅读(617)  评论(0编辑  收藏  举报