Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
28
rated 0 times [  28] [ 0]  / answers: 1 / hits: 13136  / 2 Years ago, thu, january 13, 2022, 6:21:50

enter image description here



See the attached image. The window in the background is gedit with the fonts rendered smooth. The window on top is NetBeans with not-so-smooth font rendering (not anti-aliased, I think). Both editors use Ubuintu Mono font. Can anyone help me to make NetBeans render the fonts better?



I'm on 12.10.


More From » fonts

 Answers
7

You should be able to improve the font rendering, but it will never be like the one in Gedit. Usually all java applications using Swing have that weird rendering. If you use Eclipse, for example, the font rendering should be correct.



Font rendering can be changed in /etc/netbeans.conf:



sudo gedit /etc/netbeans.conf


and at the end of netbeans_default_options (between the quotation marks) add this:



-J-Dswing.aatext=true -J-Dawt.useSystemAAFontSettings=<OPTION>


where option can be "on", "gasp" or "lcd". You can get the full list here.



Try all those and see which one gives you best look. Hope it helps.



NOTE:



i don't have Netbeans installed right now to test, but depending on the way you have installed it netbeans.conf can be located somewhere else.


[#33557] Friday, January 14, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ipentainer

Total Points: 112
Total Questions: 113
Total Answers: 113

Location: Guernsey
Member since Tue, Jul 6, 2021
3 Years ago
;