This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
My OS is Ubuntu 9.04 on VirtualBox. NetBeans version are 6.5 and 5.5.1. Both ot them got the same issue. Chinese charactors in menu and other components, e.g. ListBox, CompBox, etc. are displayed too "slim" and "colorful". These Chinese charactors are supposed display in black, squire and same-size as non-Chinese charactors. I am sure they are not controlled by Ubuntu system, and not controlled by JDK's fontconfig.properties. I need to know where to modify netbeans' menu font setting. I got a screenshot of this issue but I can not submit this screenshot together with this issue.
Created attachment 83014 [details] screenshot of netbeans
Thank you for filing issues, I have 2 simple questions : - Which JDK are you using? - Are you seeing this on NetBeans 6.7 RC1? (Chinese localization bundled) I understand GTK L&F is being used on Ubuntu GNOME desktop so GNOME setting will be used in such menu and most UI parts. But it looks strange. Rebecca, is it possible to try this?
JDK: openjdk-6-jdk for i386
xym777 Could you try to use SUN jdk6 instead of OpenJDK? As I know, OpenJDK may cause some unexpected issues.
There is no difference in NetBeans 6.7 RC1
JDK is changed to Sun's. All the same. No difference. I don't thing it's JDK that causes this issue. Please refer to the attached screenshot submitted on 30 May 2009. Please pay attention to the area with a note in blue. Chinese charactors in this area is controlled by JDK and they are displayed properly.
Thank you for checking. Did you succeed to switch JDK? We can use --jdkhome option, e.g. % netbeans --jdkhome <SUN JDK HOME> > blue. Chinese charactors in this area is controlled by JDK and they are displayed properly. Yes, true. But other areas e.g. menus and buttons are also rendered by JDK through GTK L&F. Please try a JDK demo. % cd <JDK_HOME>/demo/jfc/SwingSet2 % <JDK_HOME>/bin/java -jar SwingSet2.jar What will happen when you switch the Look&Feel from Java to GTK from menu? Could you please attach some screenshots? If only Java L&F is working, please try Java L&F for NetBeans. % netbeans --jdkhome <JDK HOME> --laf Metal
Created attachment 83168 [details] netbeans with --jdkhome set to jdk from sun
Created attachment 83169 [details] SwingSet2 with --jskhome set to jdk from sun
Please refer to screenshots nb6.7_jdkhome.png and SwingSet2.png.
Thank you for taking screenshots. Please try to configure JDK fonts. Showing square box is well-known issue of JDK. You can find the workaround in many places. I just tried on my Ubuntu. I'm using in Japanese usually so I added just Chinese language support. The easiest workaround to provide a link jre/lib/fonts/fallback from chinese font directory. For example, ln -s /usr/share/fonts/truetype/arphic /usr/lib/jvm/java-6-sun-1.6.0.13/jre/lib/fonts/fallback I don't know arphic is good for chinese or not, but it works.
Created attachment 83184 [details] screenshot on my Ubuntu box
My Ubuntu also works fine. As Masaki said, "square" is a known issue for NetBeans on Linux platform. You can see the details in release notes: http://www.netbeans.org/community/releases/67/relnotes.html#known_issues-core
It's true that "square" is a well-known issue and it got well-known solutions but it is caused by --jdkhome set to jdk without proper i18n setting. It is not the original issue. What I would like to know is what can affect GTK's appearence. In the original issue, it's obviously that GTK can find Chinese font set but can not display them properly. Thanks for your effort.
I don't understand now. Do you still see the original issue after you switched the JDK? If not, then the problem is solved, right? We don't know what results in that bad look&feel. We can only provide you a solution, that is, using SUN JDK and configuring its fonts. If you really want to investigate the reason, I suggest you go to the OpenJDK project and raise this issue there.
Closing as worksforme based on the last comments.