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