Netbeans ubuntu font look

Is there a chance to make a font in Netbeans 7.3 for ubuntu 12 to look better? take a look at what the same code looks like in eclipse and netbeans while both IDEs are configured with the same editor font settings (monospaced), I also tried using different fonts. Does it stitch like netbeans, completely changing fonts, is the font much thinner? Why is this happening?

enter image description here

I read a lot about this problem and have already added the following to the netbeans.conf file

-J-Dapple.awt.graphics.UseQuartz=false -J-Dswing.aatext=true -J-Dawt.useSystemAAFontSettings=lcd 

he fixed it a little, but still this is a big difference between the two, did someone find a suitable solution for this problem, or maybe it can be stated here that there is no solution at all? I am a new Netbeans user and love this IDE, but this thing is driving me crazy; ((

will thank a lot!

+4
source share
2 answers

Fonts will look different regardless of the changes you make, since Eclipse is based on SWT and NetBeans on Swing; two sets of user interface tools use different font rendering mechanisms.

Some fonts look better than others in Swing. My preference for Swing (and almost everywhere I use single-spaced fonts) is Ubuntu Mono , but Deja Vu Sans Mono and Pro Source code are well displayed in Swing too.

You almost certainly have the first two on your system, and the third is simple enough to install if you want. I will say that the Pro line source line pitch is great for my taste, although otherwise it's a good font.

After turning on the JRE flags that you mentioned and choosing the appropriate font, the next important element is to choose the best font size. This font in this rendering engine may look better or worse at a given size than in another environment.

I find that in Swing Deja Vu Sans Mono looks better even in dot sizes, so I usually use it both 10pt and 12pt in NetBeans. Ubuntu Mono, on the other hand, does a lot nicer with odd sizes, so I usually use it in 11pt or 13pt in NetBeans.

+6
source

Rendering fonts is different in that they use different user interface libraries. Netbeans uses swing. Eclipse uses swt.

You can fix jdk to make swing respect font rendering settings: https://gist.github.com/aleksandara/2963640

PPA for ubuntu with the fix: https://launchpad.net/~no1wantdthisname/+archive/openjdk-fontfix

+2
source

All Articles