Solaris Common Desktop Environment: User's Guide

Changing Fonts

You can change the fonts of dtterm by using either of the following methods:

To Specify Fonts from the Command Line

To change the fonts for the menu from the command line, type:

dtterm -xrm '*fontList: fontset'

where fontset is a font set specification. A font set specification can be specified by a full X Logical Font Description (XLFD) name list, a simple XLFD pattern, or an alias name. Note that a font set specification is determined by the locale that is running.

For example, to use a larger font except for the menu font, type:

dtterm -xrm '*fontList:-dt-interface user-medium-r-normal-l*-*-*-*:'

To use a smaller font except for the menu font, type:

dtterm -xrm '*fontList:-dt-interface user-medium-r-normal-s*-*-*-*:'

These specifications will work for any locale.

To Specify Fonts within a Resource File

For example, to change the fonts for the dtterm command in a resource file:

  1. Edit the Dtterm resource file in the /usr/dt/app-defaults/language directory.

    You can use either the class name (Dtterm) or the application name (dtterm) for a resource file of Dtterm.

    Also, setting the LANG environment variable alters the search path of resource files to include the /usr/dt/app-defaults/language directory, where language is the locale name.

    After setting the LANG environment variable, the search path for resource files would include the following two folders:

  2. Insert the font set you want to use at the bottom of the file.

    For example, to use a monospace font, put this line at the bottom of the file:

    dtterm -fn -dt-interface user-medium-r-normal-*-*-*-*
  3. Save the file.