You are not logged in.
Hi,
I do most of my programming under netbeans, but I've always disliked the way it renders fonts, compared to other GTK/KDE applications I use. Even more, there seems to be a difference in font sizes.
I'm currently using openjdk6 (I think I've tested SUN's jre also) with netbeans 6.8 from official repos. I have set hinting to "slight" under KDE's settings.
Particularly, I'm using a font (Monaco) which is a TTF clone of a Mac/OS font. As you can see in the screenshot, to the right there is "konsole" (I'm using the jed editor there) and to the left is the same file but under netbeans. The font rendering in konsole is perfect, but in netbeans there are some glitches (the color bleed on the 'w', the smoother looking curves in konsole, etc.)
I'm using -Dswing.aatext=true -Dawt.useSystemAAFontSettings=on (I've also tried lcd and gasp for the latter).
I've read that SUN's java uses its own font rendering engine, but openjdk should be using xft, so I don't understand the difference.
Any idea on possible solutions?
Thanks
Offline
Damn Swing and reinventing of the wheel (own font rendering engine). I've tried to find a solution to this, but haven't found anything.
If you're using it for C++ (it seems you are), maybe it is better to use Qt Creator or KDevelop? They are much faster also.
Offline
No, I use it for C++ and also Ruby (and a bit of fortran77 at work... yuck). I'm kinda stuck with netbeans just because of Ruby, but I'm not really sure if I'm really using any advanced feature that any other IDE may have. Do you know any other good one which handles Ruby/C++?
Offline
http://www.radrails.org/
Maybe this one? It is based on Eclipse.
Offline
wouldn't that have the same problem? since it is based on eclipse, which is also a Java app?
Offline
Eclipse uses a different GUI toolkit (SWT). It has no problems with font rendering.
Offline
Good to know... and have you tried radrails? Is it rails oriented? Or would It server any ruby developer (I don't do rails).
Offline
Have been having the same problem on Ubuntu. You need to use these options
-J-Dswing.aatext=true -J-Dawt.useSystemAAFontSettings=on
RadRails is also a good IDE for ruby although I switched to netbeans once ruby support was added
Offline
I'm already using those options (see my original post)
Offline
In your original post you don't have "-J" in front of the options. Without the "-J" I wasn't seeing any antialiasing and when I ran netbeans from the terminal it gave me "unknown option -Dswing.aatext=true". Added the "-J" and now I can read my code. I'm using Sun's jdk/jre and netbeans 6.8 on Ubuntu 9.04
Offline