19

I just installed NetBeans 8.1 at Ubuntu 16.04 running GNOME 3 desktop. I would like to keep using the GTK+ Look & Feel of the IDE if possible but the font on the UI especially in the tab is way too small and overlapping.

enter image description here

I tried adding --fontsize 15 into the argument at /etc/netbeans.conf file but no help.

What can I do to fix this? I don't seems to have this problem on NetBeans 8.0.2 previously.

mariusm
  • 1,483
  • 1
  • 11
  • 26
d4v1dv00
  • 971
  • 4
  • 10
  • 21

7 Answers7

7

I managed to resolved it by changing the font face and font size of GNOME using the Tweak Tool > Font

d4v1dv00
  • 971
  • 4
  • 10
  • 21
  • 4
    I am using Debian Gnome-shell. By default it used Cantarell Bold/Regular fonts. Changing them into Sans Bold/Regular fixed it for me. Perhaps the font is missing something that JRE cannot use. – mariusm May 18 '16 at 14:36
  • Changing settings by single entry is not the best idea, you will have to tweak it. Check my answer of using different netbeans theme. – Ondřej Kolín Oct 05 '18 at 08:51
6

For me it worked running netbeans with "Metal Look and Feel" (http://wiki.netbeans.org/NBLookAndFeels)

./netbeans --laf Metal

Running GTK 3.22 on Fedora 25.

Ondřej Kolín
  • 1,348
  • 1
  • 11
  • 15
4

I experienced the same problem and filed a bug in the NetBeans bug database. There is a work around, though: You can use a different look and feel. If you choose metal or Nimbus instead of the system look and feel (gtk3), there is no problem. The Darcula theme is especially noteworthy, as it is really good looking, it is a dark theme, though. You can install it as a plugin from the NetBeans Plugin installer.

Thomas
  • 11,272
  • 2
  • 24
  • 40
3

For me the solution was to set the Look and Feel to Metal in Tools > Options.

See screebshot

isapir
  • 21,295
  • 13
  • 115
  • 116
1

Check which jre you use to run NetBeans. If it's openjdk, try installing oracle jdk. Or, even better, try openjdk with font fix: https://github.com/achaphiv/ppa-fonts/tree/master/openjdk-fontfix

It makes font rendering look almost native on swing apps. I believe IntelliJ now ships their own similarly patched JRE to work around font issues.

Denis Tulskiy
  • 19,012
  • 6
  • 50
  • 68
0

Try installing Darcula LAF for Netbeans from plugins

Darcula

Bertram Gilfoyle
  • 9,899
  • 6
  • 42
  • 67
0

Yes, it is possible for Nimbus. Add the following parameters to netbeans.conf

--laf Nimbus -J-Dswing.aatext=true -J-Dawt.useSystemAAFontSettings=lcd
Pavel_K
  • 10,748
  • 13
  • 73
  • 186