Showing posts with label fontsize. Show all posts
Showing posts with label fontsize. Show all posts

Wednesday, September 15, 2010

Changing Help Brower font-size in NetBeans IDE


Help Browser font is not configurable in NetBeans.  After detailed discussion it was set to such a value which will be usable for all operating systems.

So there is no normal way to change the font for the Help Browser. There is a hack around this, knowing the fact that the Help browser uses HTML and CSS files. You can change the CSS definition of the body and p elements in the CSS file which is used for the Help Browser. The downside is you have to edit this file any time you want the font size to be changed.


The image above is what you will see if you open the Help Browser on a Mac.

If for some reason you want the font size bigger then the way to change font size is to open the ide.css file located in the paths below and change the "font-size: medium" definition to "font-size: large" for body and p element definitions.  In fact you can use any value acceptable for fond size in CSS files.


Path for the usersguide CSS file on different platforms:

On Mac
/Applications/NetBeans/NetBeans 6.9.1.app/Contents/Resources/NetBeans/ide/docs/org/netbeans/modules/usersguide/ide.css

On Ubuntu
$USERHOME/netbeans-6.9.1/ide/docs/org/netbeans/modules/usersguide/ide.css

On Windows 7
C:\Program Files\NetBeans 6.9.1\ide\docs\org\netbeans\modules\usersguide\ide.css

After changing the font-size to large:

You can see the Help Browser font is now bigger.

One better way of doing customizations in the ide.css file could be adding a customization section at the end of the file as follows:

/* Help Font Customization section */
body, p { font-size: large; }
/* end customization */

with regards
Tushar Joshi, Nagpur

Sunday, May 4, 2008

NetBeans IDE - Default Font Size

When we set out to search for the tips regarding how to change the default font and default look and feel for NetBeans IDE we get related information in seconds through any decent search engine.

Even then I am adding the same information again here with some fresh screenshots with the intension that,after this the user can find the information even sooner than I got it.

The default font size used by NetBeans IDE 6.1 is small and decent.



Some users may have different needs and want the font size to be bigger. NetBeans IDE has the facility to change the default font size through the configurations settings just like Look and feel setting.

In the netbeans.conf configuration file for NetBeans IDE which can be found in


C:\Program Files\NetBeans 6.1\etc\netbeans.conf



for the default Windows XP NetBeans IDE installation we can add the fontsize option to the netbeans_default_options string value


--fontsize 18



so make the configuration look like


netbeans_default_options="<old-options> --fontsize 18"



where <old-options> are the values already there which we will keep as they are and will add the new settings --fontsize.

This setting will make the default font size bigger and look like:



See how bigger the fonts can be seen now. Even the menus look like:



References:

NetBeans IDE Hacks part 2 font-size
NetBeans IDE Hacks part 2 laf


with regards
Tushar Joshi, Nagpur