|
|
This section provides a comprehensive example that ties together many of the concepts and procedures discussed in this chapter.
Let's assume you are an administrator for a system whose X server and X clients are accessed by several users. Many of these users have requested a bigger default text font for the scomail client. This example explains the following:
You see an extensive list of fonts. For this example, let's assume the following font looks like it might be a possible choice:
-adobe-courier-medium-r-normal--18-180-75-75-m-110-iso8859-1
You see a window that displays all of the characters of the font you specified. After some examination, you decide that you want to use this 18-point Courier font.
courier18 -*-courier-medium-r-*--18-*-*-*-m-*-*-*Notice that instead of specifying the full font name in the aliases file, you can shorten the amount of typing you need to do by using wildcard characters to replace several parts of the font name.
You can now use the courier18 alias to specify your font change.
ScoMail*XmText*fontList:This is the resource that controls the font used to display text in the scomail window.
!ScoMail*XmText*fontList: -*-courier-medium-r-*--10-*-m-*-iso8859-1By commenting out the default resource setting, instead of simply deleting the line, you leave yourself a safeguard. You can always return to this default if you make a mistake when setting a new font value.
ScoMail*XmText*fontList: courier18
Because you are currently located in the /usr/lib/X11/sco/startup directory, you only need to specify the name of the resource file you want to load into the resource database. If you run the xrdb command from a directory other than the one containing the modified resource file, you would need to specify the complete pathname of the file.
When your scoterm prompt returns, run the scomail client. The font that displays in the editing window should now be large enough to satisfy your users.