Change default font in netbeans? - netbeans

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.

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.

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 :-)

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:

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

also don't not forget to change the font to the one that support Arabic like Arial for example i am not sure of some one mention that i just tried it

As far as I can tell there's no way to do this. jEdit (http://jedit.org) also uses Swing and DOES do font substitution for all fonts - there's a "automatic font substitution" checkbox in Global Options > Text Area, along with a list of preferred fonts. But jEdit is otherwise not as capable as Netbeans.

Related

How to increase font size/font family of NetBeans IDE? (not the text editor's font)

I'm having a problem with NetBeans fonts on my computer which for some reason are getting distorted. I decided to open this question because all searches I made ended up on how to change the fonts of the text editor but not of the IDE itself. As you can see on this printscreen, it is kinda hard to read because of this missing parts of the characters. I was having exactly the same problem with burp suite then I increase the font-size (didn't found a option there to change font-family) and it solved a little bit. I think that if I change these configurations it will be easier for me to read. Thanks in advance.
The solution came from http://wiki.netbeans.org/FaqFontSize
There's 2 options to do:
Run netbeans with the additional --fontsize X parameter from the commandline
Edit the netbeans.conf file located in the %NETBEANS_INSTALLATION_DIRECTORY\etc directory and at the part that says netbeans_default_options=.... append --fontsize X (Be sure that the option -J-Dsun.java2d.dpiaware is set to true. Netbeans will ignore the --fontsize instruction if is false).
This should change the default GTK font size. As noted in the link, it may not work in Gnome desktop environments because the font there is controlled by Gnome.
The netbeans.conf file for 10.x seems to have a slightly different syntax than previous versions.
In 8.2, adding "--fontsize x" worked. I couldn't get it to work in 10.0.
But adding "--fontsize x" to the start cmd works fine and doesn't compromise the font crispness when using a HD screen.

Fonts in Netbeans smaller than desired

My Netbeans 7.4 claims, it uses Courier New 18pt font:
However, when I set my Notepad++ (and any other piece of software on my Windows 7) to the very same typefaces and font size:
Font clearly looks much bigger.
Can someone enlighten me, what am I missing? How can two programs claim that they use the very same font for text display and display that text it two different heights?
Maybe have you unconsciously made zoom. Try Alt + Mouse Wheel or defined there:
https://blogs.oracle.com/geertjan/entry/scroll_in_netbeans_editor_to

Syntax-dependent fonts in Eclipse?

Notepad++ has the ability to show some types of syntax (e.g. strings) in a different font from others.
Can Eclipse do something like this?
I need this ability because the strings have Unicode characters in them, but all the fonts that I have that support Unicode look crap in the rest of the code.
EDIT: I am looking for this feature for Java code.
Not currently possible, you can only change the font family for the entire Java editor.
it depends on which perspective .. I am using PyDev .. go to window-->preferences then select PyDev tab then select Editor ..you will find a panel titled with "Appearance color options" .. you can customize the color of each part of your codes

Custom Fonts for non-English Text

I installed a custom font however, my app runs on two languages. I noticed that the custom fonts work with English but not with non-English. How can I overcome this?
You need to choose a custom font that includes "glyphs" for all of the special characters and punctuation that are needed for the language you are using. If the custom font you have is missing these extra glyphs, then you can either edit the font in a font editor such as Fontographer to add the missing glyphs (this requires drawing them in or copying parts from other letters), or finding a new version of the same font that includes the glyphs you need.
You can see the missing glyphs by opening a font that has these glyphs in the "Font Book" program included with mac os x. Then you can open your custom font and compare the two to see what's missing.
Also keep in mind that you usually need a custom license from the font owner to include fonts in your application.

Letterspacing in Eclipse code editor

Is there any way to change the letter-spacing of text in Eclipse's code editor?
Maybe you can try changing from a fixed width font to the variable width font like Verdana or Tahoma. Window->Preferences->Appearance->Colors and Fonts->Basic->Text Font
If you mean the java code editor in Eclipse this is not possible. The editor is not a word processor. You can only change the font setings (typeface, style, color, size).
If you are referring to this kind of letter spacing, then no, I do not think so.
Not in the sense that a typography system allows you to tweak the appearance of text on a printed page.
The default for me is Courier New Regular 10. You can change the size to 12 or some other size.
Are you trying to change the kerning rules? Kerning is positioning different letters in a variable-width font. For instance in the word "We", the "e" is tucked in a little bit under the "W". The page-layout software that magazine publishers use can control this.
Fonts are opaque to Eclipse; it doesn't give you a way to change the rules within the font. Unfortunately the best you can do is try the different fonts and sizes until you find one that has kerning rules that work, more or less.