NetBeans and other wide fonts do not support Chinese

Source: Internet
Author: User
Tags netbeans

has been using NetBeans, all aspects are very satisfied, is the font is very uncomfortable, such as the use of a wide font but does not support Chinese, Baidu a bit, found a solution, posted out, to the needs of friends.

01. Find your own Java Font directory. My directory is "C:\Program files\java\jdk1.7.0_21\jre\lib"

02, copy fontconfig.properties.src, rename to Fontconfig.properties

03. Open the Fontconfig.properties with the editor and add the following code at the bottom.
FileName. Consolas=consola. TTF
FileName. Consolas_bold=consolab. TTF
FileName. Consolas_italic=consolai. TTF
FileName. Consolas_bold_italic=consolaz. TTF

04, to replace
Find Monospaced.plain.alphabetic=courier New
To replace with Monospaced.plain.alphabetic=consolas

Find Monospaced.bold.alphabetic=courier New Bold
Replace with Monospaced.bold.alphabetic=consolas Bold

Find Monospaced.italic.alphabetic=courier New Italic
Replace with Monospaced.italic.alphabetic=consolas Italic

Find Monospaced.bolditalic.alphabetic=courier New Bold Italic
Replace with Monospaced.bolditalic.alphabetic=consolas Bold ttalic

Find SEQUENCE.MONOSPACED.GBK=CHINESE-MS936,ALPHABETIC,DINGBATS,SYMBOL,CHINESE-MS936-EXTB
To replace with Sequence.monospaced.gbk=alphabetic,chinese-ms936,dingbats,symbol

Find SEQUENCE.MONOSPACED.GB18030=CHINESE-GB18030,ALPHABETIC,DINGBATS,SYMBOL,CHINESE-GB18030-EXTB
To replace with Sequence.monospaced.gb18030=alphabetic,chinese-gb18030,dingbats,symbol

Finally, save and restart the IDE is OK.

NetBeans and other wide fonts do not support Chinese

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.