Question

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.

Was it helpful?

Solution

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"

OTHER TIPS

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.

As stated in this blog, you can activate the option mentioned in the previous answer system-wide for all swing applications adding

_JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=lcd"

to your profile.

I use Mint Linux and the configuration below is ok here.

The correct form is this:

netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.zip.disableMemoryMapping=true --laf GTK"

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top