I installed sudoapt-getinstallnetbeans directly in Ubuntu10.04. It automatically downloads OpenJDK instead of Sun's JDK, while OpenJDK's fontconfig. the properties file has a problem with Chinese characters, which leads to abnormal display of Chinese characters. Fontconfig. properties location (default)/usr/lib/jvm/java-1.6.0-openjd I installed sudo apt-get install netbeans directly under Ubuntu 10.04, which automatically downloads OpenJDK instead of Sun's JDK, openJDK fontconfig. the properties file has a problem with Chinese characters, which leads to abnormal display of Chinese characters.
Fontconfig. properties location (default)
/Usr/lib/jvm/java-1.6.0-openjdk/jre/lib/
Wqy-microhei font position (default )
/Usr/share/fonts/truetype/wqy
Solution: 1. Open the fontconfig file and comment out all Chinese fonts except wqy at the beginning of the file. As follows:
# Chinese fonts
# Allfonts. umingcn = ar pl UMing CN
# Allfonts. umingcn. motif = ar pl UMing CN
# Allfonts. uminghk = ar pl UMing HK
# Allfonts. uminghk. motif = ar pl UMing HK
# 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
2. Change the address of the font file below
Filename. WenQuanYi_Zen_Hei =/usr/share/fonts/truetype/wqy/wqy-zenhei.ttf
Change
Filename. WenQuanYi_Zen_Hei =/usr/share/fonts/truetype/wqy/wqy-microhei.ttc
In this way, the WenQuanYi_Zen_Hei object corresponds to the micron black font, which is a bit arrogant to the horse, but it does not matter for now. Now, www.linuxidc.com restarts netbeans and the Chinese text is displayed normally ~
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.