xmjcsdn 2012-01-09
1. 在 jre/lib/fonts/ 下建立个目录 fallback,如在Ubuntu 9.04中:
代码:
sudomkdir/usr/lib/jvm/java-6-sun/jre/lib/fonts/fallback/
(/usr/lib/jvm/java-6-sun这个为JDK所在的目录。)
2.在fallback里弄个中文字体,如在Ubuntu9.04中:
代码:
sudoln-s/usr/share/fonts/truetype/wqy/*.*/usr/lib/jvm/java-6-sun/jre/lib/fonts/fallback/
3./usr/lib/jvm/java-6-sun/jre/lib/fonts/fallback/执行mkfontscale
再把/usr/lib/jvm/java-6-sun/jre/lib/fonts/fallback/fonts.scale的内容加到/usr/lib/jvm/java-6-sun/jre/lib/fonts/fonts.dir
如在Ubuntu9.04中:
代码:
cd/usr/lib/jvm/java-6-sun/jre/lib/fonts/fallback/
sudomkfontscale
cd..
sudo cat fallback/fonts.scale >> fonts.dir如有错误,欢迎指正