Configure Netbeans in ubuntu

Source: Internet
Author: User
Tags netbeans

Netbeans fonts in ubuntu are really ugly and need to be beautified before they can be used: 1. Configure the monaco font (of course the font is also good) monaco font is a kind of font in the Apple operating system. It is very artistic and personally feels close to handwriting. The code looks pretty in this font. The following operations are performed on the ubuntu operating system. If you are using windows, install Google or Baidu: 1. Create a new mac sudo mkdir/usr/share/fonts/mac folder under/usr/share/fonts/. 2. Copy the downloaded monaco font to sudo cp in this folder. [path + *. ttf]/usr/share/fonts/mac 3. Start to install cd/usr/share/fonts/mac/sudo mkfontscale (create fonts for fonts. scale file, which is used to control font rotation and scaling) sudo mkfontdir (create fonts font. dir file, which is used to control the generation of font italics.) sudo fc-cache-fv (set up the font cache information, that is, let the system know the font) then, log on to the system again to use the monaco font in netbeans. 4. Delete the font, delete the mac folder directly, and then sudo fc-cache-fv. If you do not need to support Chinese characters in your code, you do not need to read it further. Since monaco does not support Chinese characters, all Chinese fonts on the page are changed to squares. Solution: 1. Modify the fontconfig in the $ JAVA_HOME/jre/lib/directory. properties file. If not, you can set the fontconfig. properties. copy src to fontconfig. properties 2. Add filename under # Font File Names. -apple-monaco-medium-r-normal-0-0-0-0-m-0-iso8859-1 =/usr/share/fonts/mac/MONACO. TTF (modify according to your actual situation) 3. Add allfonts under # Component Font Mappings. monaco =-apple-monaco-medium-r-normal-0-0-0-0-m-0-iso8859-1 (after the practice without adding this can also be) 4, modify all monospaced. xxx. latin-1, modified- Apple-monaco-medium-r-normal-0-0-0-0-m-0-iso8859-1 save and restart netbeans. Now the Chinese language is displayed normally. 2. Add the anti-aliasing parameter-J-Dawt.useSystemAAFontSettings = on author fuliang to the default "netbeans_default_options" option in the netbeans. conf file

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.