Netbeans redirected to X11 font issue

I am trying to forward my IDE, Netbeans, on top of ssh to an Xming server on my Windows desktop. I can get Netbeans to start and run, but fonts look awful because they don't smooth out. I uploaded a screenshot here .

If I run Netbeans from Gnome in the linux box itself, the fonts look great, so this should be a problem with Xming or the rendering of Windows fonts. Does anyone have any ideas on how to get Xming to display anti-aliased fonts?

Update:

I just installed the font server on the host, but the fonts are still displayed on the client side with pixels.

+4
source share
5 answers

As a result, I set some netbeans command-line options in a launcher script to force the smoothing and smoothing of the sub-pixel. This fixed the problem.

Update: Added Steps

I set netbeans_default_options in the /etc/netbeans.conf file 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" 
+6
source

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

It seems to detect if KDE or GNOME is running, and if not, decides not to worry.

If you want a different solution, try to make sure that "gnome-settings-daemon" is running before running netbeans.

+3
source

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

 _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=lcd" 

to your profile.

+3
source

I am using Mint Linux and here is the configuration below.

The correct form:

 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" 
+2
source

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

+1
source

All Articles