更新至Ubuntu12.10后fontsconfig出现警告的解决办法
来源:互联网 发布:网络运营服务商 编辑:程序博客网 时间:2024/05/10 05:21
从Ubuntu12.04升级到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 expectedFontconfig warning: “/etc/fonts/conf.d/50-user.conf”, line 9: reading configurations from ~/.fonts.conf is deprecated.
先来解决第一个问题。Google了一下发现有人报告了类似的BUG:
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。
问题解决
本文链接: http://www.cherrot.com/2012/11/fix-fontsconfig-warning-after-upgrading-to-ubuntu-1210
- 更新至Ubuntu12.10后fontsconfig出现警告的解决办法
- ubuntu12.10更新包后的问题
- mac 更新10.11后,出现command not found的解决办法
- kali2.0 更新中断后 出现问题的解决办法
- 双系统Ubuntu12.10 安装后 grub rescue的解决办法
- 升级到xcode4.2 iOS sdk 5.0旧版工程编译后出现的警告解决办法
- 【转】总结:升级到xcode4.2 iOS sdk 5.0旧版工程编译后出现的警告解决办法
- 升级as后,老工程gradle文件出现"dependencies' cannot be applied to '(groovy.lang.Closure)'警告的解决办法
- 安装或更新到IE8后, VS2008 向导出现的Add Variable等等问题的 解决办法
- Drupal升级运行更新后出现public files directory的解决办法。
- Android7.0 安装apk更新包后出现异常的解决办法
- Xcode升级后的警告、错误的解决办法
- Xcode升级后的警告、错误的解决办法
- 使用C3P0时出现包警告的解决办法
- 使用history.back()出现"警告: 网页已过期的解决办法"
- 使用history.back()出现"警告: 网页已过期的解决办法"
- 使用history.back()出现"警告: 网页已过期的解决办法"
- tomcat出现警告信息WARN DTDEntityResolver:73的解决办法
- java socket
- oracle传输表空间功能测试(含详细过程)
- ArcEngine中同时闪烁多个要素
- UVa 10954 - Add All
- Qt for WINCE5.0在windowsXP的VS2005平台上的搭建
- 更新至Ubuntu12.10后fontsconfig出现警告的解决办法
- 读取txt文件实现搜索替换功能
- 希尔排序小结
- 把ATmega128开发板转为Arduino
- 收藏,Linus Torvalds删除链表节点的NB代码。
- POJ搜索专题(转转)
- Linux之线程
- hdu 1495 非常可乐(BFS)
- 2013 多校联合 F Magic Ball Game (hdu 4605)