Reputation: 93
The editor defaults to a monospaced font, which looks like Courier New. I want to use something like Consolas instead, but I only see a few fixed options that look like they map to system fonts. Is there a way to choose an installed font to use as the editor's default font?
Upvotes: 1
Views: 5239
Reputation: 93
I discovered how to choose a font that's not listed in the IDE's font selection menu after messing with configuration files for a while. This was tested on Windows with NetBeans 6.9.1 and MPLAB X 1.95. (Note: NetBeans 7 has a font chooser.)
The configuration file for fonts and colors has been created. You can either follow option 1 or 2 to open the configuration file, then see the last section to change the font. The second option is easier if you don't know where the configuration files are located.
MPLAB X
/Users/user/AppData/Roaming/.mplab_ide/dev/v1.95/config/Editors/FontsAndColors/NetBeans/org-netbeans-modules-editor-settings-CustomFontsColors-tokenColorings.xml
NetBeans
/Users/user/.netbeans/6.9/config/Editors/FontsAndColors/NetBeans/org-netbeans-modules-editor-settings-CustomFontsColors-tokenColorings.xml
Either search for "Dialog" (or the font that was selected earlier) or "name="default"", which is an attribute of the fontcolor element. There should be a nested element that looks like:
<font name="Dialog" size="12"/>
Change "name" to the font that you want to use. The selected font should be set after the IDE restarts.
Upvotes: 2