views:

1229

answers:

5

I'm trying to forward my IDE, Netbeans, over ssh to the Xming server on my Windows Desktop. I'm able to get Netbeans to launch and run, but the fonts look terrible because they aren't being anti-aliased. I've uploaded a screenshot here.

If I launch Netbeans from Gnome on the linux box itself, the fonts look fine, so it must be a problem with Xming or the Windows font rendering. Does anyone have any ideas about how to get Xming to display the fonts anti-aliased?

Update:

I just setup a font server on the host, but the fonts still appear pixelated on the client side.

+1  A: 

Allow the Linux machine to be an X11 fontserver and tell your Xming session to use the Linux machine as an X11 font server.

Thorbjørn Ravn Andersen
I just got done trying that, but it didn't work. Thanks for the input though.
jcnnghm
+3  A: 

I ended up setting some of the netbeans command line options in the launcher script to force anti aliasing and force subpixel font rendering. This fixed the issue.

Update: Added Steps

I set the netbeans_default_options under /etc/netbeans.conf to read:

netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=200m -J-Xverify:none -J-Dapple.laf.useScreenMenuBar=true -J-Dawt.useSystemAAFontSettings=lcd"

jcnnghm
Might be beneficial for someone else running into this issue if you could share those command-line options.
cmptrgeekken
+2  A: 

Java is a bit weird on Linux as to how it decides whether to anti-alias or not.

It seems to detect if KDE or GNOME are running, and if not, decides not to bother.

If you want another solution, try making sure that "gnome-settings-daemon" is running before launching netbeans.

wrt
A: 

Thank you! It works fine!!!

A: 

Thanks a lot, jcnnghm!!

santosh
Thanks a lot, jcnnghm!!
santosh