OpenJDK 6
java -version:
代码: 全选
java version "1.6.0_18"
OpenJDK Runtime Environment (IcedTea6 1.8) (6b18-1.8-0ubuntu1)
OpenJDK Client VM (build 14.0-b16, mixed mode, sharing)
现在问题通过以下步骤基本解决了:
1.备份/usr/lib/jvm/java-6-openjdk/jre/lib/fontconfig.properties
2.修改fontconfig.properties如下(包括修改了wqy-zenhei.ttf,uming.ttf的问题)
# Version
# Uses Ubuntu 8.04 (hardy), Debian 6.0 (Squeeze) (and more recent releases) fonts and file paths.
version=1
# Component Font Mappings
# Chinese fonts
allfonts.umingcn=WenQuanYi Micro Hei
#allfonts.umingcn=AR PL UMing CN
#allfonts.umingcn.motif=AR PL UMing CN
allfonts.uminghk=WenQuanYi Micro Hei
#allfonts.uminghk=AR PL UMing HK
#allfonts.uminghk.motif=AR PL UMing HK
allfonts.umingtw=WenQuanYi Micro Hei
#allfonts.umingtw=AR PL UMing TW
#allfonts.umingtw.motif=AR PL UMing TW
allfonts.wqy-zenhei=WenQuanYi Zen Hei
#allfonts.wqy-zenhei.motif=WenQuanYi Zen Hei
allfonts.shanheisun=AR PL ShanHeiSun Uni
#allfonts.shanheisun.motif=AR PL ShanHeiSun Uni
allfonts.wqy-mirochei=WenQuanYi Micro Hei
……
……
filename.AR_PL_UMing_CN=/usr/share/fonts/truetype/arphic/uming.ttc
filename.AR_PL_UMing_HK=/usr/share/fonts/truetype/arphic/uming.ttc
filename.AR_PL_UMing_TW=/usr/share/fonts/truetype/arphic/uming.ttc
filename.AR_PL_ShanHeiSun_Uni=/usr/share/fonts/truetype/arphic/uming.ttc #原为uming.ttf 显为BUG
……
……
filename.WenQuanYi_Zen_Hei=/usr/share/fonts/truetype/wqy/wqy-zenhei.ttc #原为wqy-zenhei.ttf 显为BUG
filename.WenQuanYi_Micro_Hei=/usr/share/fonts/truetype/wqy/wqy-microhei.ttc #新增
# AWT X11 font paths
awtfontpath.latin-1=/usr/share/fonts/X11/Type1
awtfontpath.umingcn=/usr/share/fonts/truetype/arphic
awtfontpath.uminghk=/usr/share/fonts/truetype/arphic
awtfontpath.umingtw=/usr/share/fonts/truetype/arphic
awtfontpath.shanheisun=/usr/share/fonts/truetype/arphic
awtfontpath.wqy-zenhei=/usr/share/fonts/truetype/wqy
awtfontpath.wqy-microhei=/usr/share/fonts/truetype/wqy #增加这行
awtfontpath.japanese-kochi=/usr/share/fonts/truetype/kochi
awtfontpath.japanese-sazanami=/usr/share/fonts/truetype/sazanami
awtfontpath.japanese-vlgothic=/usr/share/fonts/truetype/vlgothic
awtfontpath.korean-baekmuk=/usr/share/fonts/truetype/baekmuk
awtfontpath.korean-un=/usr/share/fonts/truetype/unfonts
不过,这个解决办法还有遗留,那就是文泉驿正黑用不起来,只能用文泉驿微米黑,因为一旦把上边的allfonts.umingcn,allfonts.uminghk,allfonts.umingtw的值改成WenQuanYi Zen Hei,中文字体就变成“花瘦花瘦”的了。
是我的设置出了问题,还是怎么回事?
此外,我在用freemind的时候,发现使得文泉驿正黑的那部分中文就会花掉,而使用文泉驿微米黑的用没有事情,甚致用文泉驿等宽正墨都是OK的 PS:
1.劝我换回SunJDK的同学们先谢谢了。我只是想知道问题是不是出自我的fontconfig.properties上。
2.fontconfig.properties的uming.ttf以及wqy-zenhei.ttf错误显然是一个BUG,这个应该向谁提交?有人提交过么?
3.谢谢