Change default font in netbeans?

46,791

Solution 1

Tools > Options > Fonts and Colors

Set the category "Default", and to the right of that, the font you want to use.

If this does not fix it, try adding:

--laf Nimbus -J-Dswing.aatext=true -J-Dawt.useSystemAAFontSettings=lcd

or

-J-Dswing.aatext=true -J-Dawt.useSystemAAFontSettings=lcd --laf Metal

to the file : netbeans.conf. You can find it in $NETBEANS_HOME/etc/ folder. Make your application font smaller from system preferences.

Solution 2

To change the font size outside of the editor you can configure by editing the Net Beans conf file, you can find it here: C:\Program Files\NetBeans 8.0.2\etc\netbeans.conf

Then edit this line: netbeans_default_options="..."

by adding this at the end:

--fontsize 18

I hope it helps :-)

Solution 3

Life becomes more easier now. Just from Tools menu choose Options and then follow steps on the following screen shot and take care with step 3 and 4 which they are making the default font for all languages:

enter image description here

Solution 4

I have a NetBeans plugin called 'UI-Editor' which allows you to customize virtually any Swing property, including font sizes, colors, and types. Go to Tools->Plugins and search for 'UI-Editor' or go here: http://plugins.netbeans.org/plugin/55618/?show=true

Share:
46,791

Related videos on Youtube

King Julien
Author by

King Julien

Updated on July 19, 2022

Comments

  • King Julien
    King Julien 6 months

    Is it possible to change the default font in netbeans? The documentation says:

    The font Monospaced is maped to different fonts on different systems. On Windows it is mapped to "Courier ", on Linux it is mapped to "Lucida Typewriter".

    http://ui.netbeans.org/docs/ui/editor_fonts_colors/Editor_fonts_and_colors.htm

    I'm on windows and want to map Monospaced font to 'Consolas' instead of 'Courier'.

    P.S. I know that fonts can easily be changed from options, but when I change it in this way, I can no longer use unicode characters. Guess I need to do what they call 'mapping' the monospaced font to other font.

    • Mechanical snail
      Mechanical snail over 10 years
      Sounds like font fallback only works with standard font aliases? Strange.
  • King Julien
    King Julien over 10 years
    Set my default font to consolas, tried to add both of the configuration lines but still when I try to type using unicode characters I get some unknown symbols instead...
  • megastruktur almost 6 years
    Thank you, saved my day! :D

Related