php modifies the default font size of NetBeans

  • 2020-07-21 07:15:06
  • OfStack

In Netbeans, Swing is used for development, so the fonts for the interface are also configured by the Java virtual machine rather than with the operating system. The default font size after installing Netbeans is 11px. The minimum support for Windows is 12px. So the font size of 11px is no longer fully displayed.

The simple solution is to change the font size by one point. To do this, open the etc\ netbeans.conf file in the Netbeans installation directory. In:
netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=128m -J-XX:MaxPermSize=200m -J-Dnetbeans.logger.console=true -J-ea -J-Dapple.laf.useScreenMenuBar=true -J-Dsun.java2d.noddraw=true"

This line is preceded by the last quote --fontsize 12. Namely to:
netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=128m -J-XX:MaxPermSize=200m -J-Dnetbeans.logger.console=true -J-ea -J-Dapple.laf.useScreenMenuBar=true -J-Dsun.java2d.noddraw=true --fontsize 12"

Restart Netbeans at this point and you'll find that you've grown to a normal size, not so ugly anymore.

By default, the NetBeans editor and Output fonts are ugly. Fonts in the editor can be resolved by modifying the configuration. However, the Output font cannot be changed through configuration.
You can do this by changing the default configuration of JDK, but all Java GUI programs will be affected.
Take JDK7 as an example.
in < JDK installation directory: C:\Program Files\Java\ ES42en1.7.0 _17\jre\lib > There is one named ES48en.properties.src under /jre/lib, first backup.
When the configuration file defaults to GBK and GB18030, the isosquare (monospace) has the priority to use SImSUN (i.e. the song font), which can be changed to the priority to use Courier New(defined as alphabetic in the file).

Find sequence. monospaced. GBK = chinese - ms936 alphabetic, dingbats, symbol
For sequence. monospaced. GBK = alphabetic, chinese - ms936 dingbats, symbol

Find sequence. monospaced. GB18030 = chinese - gb18030 alphabetic, dingbats, symbol
For sequence. monospaced. GB18030 = alphabetic, chinese - gb18030 dingbats, symbol

Finally, restart Netbeans and you will see the changes.

Related articles: