更新至Ubuntu12.10后fontsconfig出现警告的解决办法
2013-07-24 15:45
330 查看
从Ubuntu12.04升级到Ubuntu12.10后,自我感觉这个发行版并不那么如人意。升级之后Fontsconfig就不停的在抱怨:
先来解决第一个问题。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 .
所以,我们只需要将中重复的值分别放到重复的标签中即可,也就是说,将下面这段代码:
替换为:
再来看第二个问题,在这里搜到了答案:
@依云 :消除这个 deprecated 的警告的正确方法是把配置文件移到 ~/.config/fontconfig/fonts.conf。
问题解决
本文链接: http://www.cherrot.com/2012/11/fix-fontsconfig-warning-after-upgrading-to-ubuntu-1210
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.
先来解决第一个问题。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
相关文章推荐
- ubuntu 更新时出现校验和不符 的一种解决办法
- ubuntu 更新时出现校验和不符 的一种解决办法
- Ubuntu更新出现"The system is running in low-graphics mode"错误提示的解决办法
- ubuntu 更新时出现校验和不符 的一种解决办法
- Ubuntu开机出现:Fontconfig warning:"/etc/fonts/conf.d/65-droid-sans-fonts.conf"的解决办法
- Ubuntu 出现 Fontconfig warning 警告问题(解决)
- ubuntu 更新时出现校验和不符 的一种解决办法
- ubuntu 更新时出现校验和不符 的一种解决办法
- ubuntu 更新时出现校验和不符 的一种解决办法
- ubuntu 更新时出现校验和不符 的一种解决办法
- ubuntu 更新时出现校验和不符的解决办法
- ubuntu1204 更新源出现问题解决办法
- ubuntu 12.04.1升级至ubuntu 12.10出现gcc-4.7依赖库错误的解决办法
- ubuntu中gedit打开txt文档出现乱码的解决办法
- ubuntu 使用apt-get install sqlite3 出现问题的解决办法
- Mint17.3/Ubuntu14.04出现failed to start the X server ...错误的解决办法
- ubuntu运行sudo命令出现“sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner”的一种解决办法