Php: Modify the default NetBeans font

Source: Internet
Author: User
Tags netbeans
Welcome to the Linux community forum, and interact with 2 million technical staff. Because Swing is used for development in Netbeans, the font of the interface is also configured by the Java Virtual Machine instead of the operating system. The default font size after installing Netbeans is 11px. In Windows, supports a minimum of 12px. The font is 11 p.

Welcome to the Linux community forum and interact with 2 million technical staff> In Netbeans, Swing is used for development, therefore, the font of the interface is configured by the Java Virtual Machine instead of the operating system. The default font size after installing Netbeans is 11px. In Windows, supports a minimum of 12px. The font is 11 p.

Welcome to the Linux community forum and interact with 2 million technicians>

Due to the use of Swing for development in Netbeans, the UI font is also configured by the Java Virtual Machine instead of the operating system. The default font size after installing Netbeans is 11px. In Windows, supports a minimum of 12px. Therefore, the font 11px cannot be fully displayed.

The simple solution is to increase the font size. The detailed method is to open the etc \ Netbeans. conf file under the netbeans installation directory. In:

Netbeans_default_options = "-J-client-J-Xss2m-J-Xms32m-J-XX: PermSize = 128 m-J-XX: maxPermSize = 200 m-J-Dnetbeans.logger.console = true-J-ea-J-Dapple.laf.useScreenMenuBar = true-J-Dsun.java2d.noddraw = true"

-- Fontsize 12 is added before the last quotation mark of this line. That is, change:

Netbeans_default_options = "-J-client-J-Xss2m-J-Xms32m-J-XX: PermSize = 128 m-J-XX: maxPermSize = 200 m-J-Dnetbeans.logger.console = true-J-ea-J-Dapple.laf.useScreenMenuBar = true-J-Dsun.java2d.noddraw = true -- fontsize 12"

When you restart Netbeans, you will find that you have changed to a normal size, which is no longer so ugly.

By default, the NetBeans editor and Output fonts are ugly. You can modify the font configuration in the editor. However, the Output font cannot be modified through configuration.

You can modify the default JDK configuration. However, all Java GUI programs will be affected.

The following uses JDK 7 as an example.

In /Jre/lib has a file named fontconfig. properties. src, which is backed up first.

By default, when the configuration file is GBK or GB18030, SImSUN (I .e.) is preferentially used for monospace. You can change it to Courier New (which is defined as alphabetic in the file ).

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

Replace with sequence. monospaced. GBK = alphabetic, chinese-ms936, dingbats, symbol

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

Replace with sequence. monospaced. GB18030 = alphabetic, chinese-gb18030, dingbats, symbol

Finally, restart Netbeans to see the change.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.