Modifying the Default Font Size

For some character sets, users, and languages, the default font sizes specified by NJVM are either too small or too large for comfortable and convenient viewing. NJVM has the limited ability to scale up the defaults by a fixed number. This affects only the applications that use the default font size. For example, applications such as the NetWare Install have developer-specified font sizes; these remain unchanged.

To change the defaults, locate your font.properties file located in sys:\java\lib. NJVM defaults to a single font.properties file, but custom installations can have files with added extensions. Extensions are composed of the machine's language and locale settings. For example, a machine using the English language located in New Zealand would use font.properties.en_nz, and a machine using the Russian language would use font.properties.ru. If the specific font.properties.language.locale combination does not exist, NJVM searches for a font.properties.language file. If that does not exist either, the default font.properties file is used.

After you find the appropriate font.properties file, add the following line to the file:

FontSizeCorrection=value

Replace value with the number you want to increase or decrease the default font sizes by. For example, to change the default Japanese default font size from 12 to 16, open the sys:\java\lib\font.properties.jp file and the following line:

FontSizeCorrection=4

You can use negative numbers, but these are not recommended because the default font sizes are determined based on the minimum size for readability.