You are not logged in.

#1 2010-02-03 21:44:03

V01D
Member
Registered: 2006-07-18
Posts: 128

Ugly font rendering/hinting in netbeans

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.)

fuentes.png


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

#2 2010-02-23 22:18:28

Mad Fish
Member
Registered: 2009-09-22
Posts: 295

Re: Ugly font rendering/hinting in netbeans

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

#3 2010-02-23 22:41:25

V01D
Member
Registered: 2006-07-18
Posts: 128

Re: Ugly font rendering/hinting in netbeans

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

#4 2010-02-23 23:27:38

Mad Fish
Member
Registered: 2009-09-22
Posts: 295

Re: Ugly font rendering/hinting in netbeans

http://www.radrails.org/
Maybe this one? It is based on Eclipse.

Offline

#5 2010-02-23 23:38:34

V01D
Member
Registered: 2006-07-18
Posts: 128

Re: Ugly font rendering/hinting in netbeans

wouldn't that have the same problem? since it is based on eclipse, which is also a Java app?

Offline

#6 2010-02-24 13:15:50

Mad Fish
Member
Registered: 2009-09-22
Posts: 295

Re: Ugly font rendering/hinting in netbeans

Eclipse uses a different GUI toolkit (SWT). It has no problems with font rendering.

Offline

#7 2010-02-24 13:22:24

V01D
Member
Registered: 2006-07-18
Posts: 128

Re: Ugly font rendering/hinting in netbeans

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

#8 2010-03-02 17:28:30

starhero
Member
Registered: 2010-03-02
Posts: 2

Re: Ugly font rendering/hinting in netbeans

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

#9 2010-03-02 17:31:23

V01D
Member
Registered: 2006-07-18
Posts: 128

Re: Ugly font rendering/hinting in netbeans

I'm already using those options (see my original post)

Offline

#10 2010-03-03 04:12:00

starhero
Member
Registered: 2010-03-02
Posts: 2

Re: Ugly font rendering/hinting in netbeans

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

Board footer

Powered by FluxBB