On further investigation, it appears that this bug has to do with an interaction between:
* /etc/fonts/conf.d/49-sansserif.conf (from fontconfig-config), and
* /etc/fonts/conf.d/69-language-selector-zh-cn.conf (from language-selector-common)
(substitute "zh-cn" for other locales)
Quite a few Ubuntu users have blogged about this problem, and the usual quick fix is to get rid of /etc/fonts/conf.d/49-sansserif.conf , or change the append_last "sans-serif" therein to some other font. That said, I agree with Arne's assessment: Removing 49-sansserif.conf does not seem to be the "right way", especially since this file is part of the upstream source, probably added by Keith Packard himself?
This trick works for me:
$ cd /etc/fonts/conf.d/
$ sudo mv 69-language-selector-zh-cn.conf 48-language-selector-zh-cn.conf
Such that the Chinese-specific "prepend" config is sourced first. Please try and see if this trick works for you too.
I also tried playing with the following command (under the zh_CN.UTF-8 locale):
On further investigation, it appears that this bug has to do with an interaction between:
* /etc/fonts/ conf.d/ 49-sansserif. conf (from fontconfig-config), and
* /etc/fonts/ conf.d/ 69-language- selector- zh-cn.conf (from language- selector- common)
(substitute "zh-cn" for other locales)
Quite a few Ubuntu users have blogged about this problem, and the usual quick fix is to get rid of /etc/fonts/ conf.d/ 49-sansserif. conf , or change the append_last "sans-serif" therein to some other font. That said, I agree with Arne's assessment: Removing 49-sansserif.conf does not seem to be the "right way", especially since this file is part of the upstream source, probably added by Keith Packard himself?
This trick works for me: selector- zh-cn.conf 48-language- selector- zh-cn.conf
$ cd /etc/fonts/conf.d/
$ sudo mv 69-language-
Such that the Chinese-specific "prepend" config is sourced first. Please try and see if this trick works for you too.
I also tried playing with the following command (under the zh_CN.UTF-8 locale):
$ FC_DEBUG=1 firefox http:// www.tudou. com/
Checking the of the debug output, it appears that Adobe Flash is trying to search for the appropriate font similar to the following command:
$ FC_DEBUG=1 fc-match '/usr/share/ fonts/truetype/ ttf\-bitstream\ -vera/Vera. ttf':scalable= true
With 49-sansserif.conf and 69-language- selector- zh-cn.conf, fc-match returns:
Vera.ttf: "Bitstream Vera Sans" "Roman"
With 48-language- selector- zh-cn.conf and 49-sansserif.conf, fc-match returns:
wqy-zenhei.ttf: "WenQuanYi Zen Hei" "中等"
Arne, what do you think? Would that be an appropriate fix for language-selector?
Thanks,
Anthony