Asian characters are garbled (shown as rectangle) on my Linux box, how can I fix this?
When running the IDE on some Linux distributions (such as Ubuntu and Fedora Core) in some Asian locales, multi-byte characters may display as rectangles or otherwise incorrectly. This can happen when the JDK 5 or 6 font settings have not been customized for these or other Linux distributions.
These JDK pages tell which Linux distributions have asian font support:
Please ask the Linux distributor of the OS in which this problem might appear about correct JDK setting and any known workaround and also please consult with web pages, mailing list and forums of the Linux distribution to see if information on workarounds might be available.
See below for information on how to install Sun jdk on Ubuntu, which can help workaround the problem described here.
The simple workaround is to prepare fonts under $JDK/jre/lib/fonts/fallback/.
% sudo mkdir -p $JDK/jre/lib/fonts/fallback/ % sudo ln -s some_localized_font.ttf $JDK/jre/lib/fonts/fallback/
NOTE - Red Hat Enterprise 3 and 4 are supported by the JDK 1.5 and Java SE 6 as to font support for asian locales and this problem has not been seen when running NetBeans using those OS.
- Java SE 6
- Java SE 5
You can install sun-java5-jdk and sun-java6-jdk on Ubuntu and Debian.
- Ubuntu 6.x
- Ubuntu 7.x
Useful information for Japanese users can be found in Japanese NetBeans FAQ
Applies to: All