问题
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.
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.
回答1:
I managed to resolved it by changing the font face and font size of GNOME using the Tweak Tool > Font
回答2:
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.
回答3:
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.
回答4:
For me the solution was to set the Look and Feel to Metal in Tools > Options.
See
回答5:
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.
回答6:
Try installing Darcula LAF for Netbeans from plugins
来源:https://stackoverflow.com/questions/36846159/netbeans-8-1-gnome-3-gtk-ui-font-and-tabs-height