|
|
System-wide font resources are specified on a client basis, in the system-wide resource files. If you want to make font resource changes that affect an application every time it is run on your system, you must make your font changes in these files.
You must be logged into the system as root to perform this task.
To make a font resource change or addition in the resource
database, perform the following steps.
Default resources for clients are stored in files in two locations on the system: /usr/lib/X11/sco/startup and /usr/lib/X11/app-defaults. These directories contain several files, each named for the specific client they represent. The resource specifications defined in these files control the appearance and behavior of their specific client.
The files in /usr/lib/X11/sco/startup contain server-specific resources. The values of these resources are loaded into the resource database and stored in the X server by the xrdb client when a Graphical Environment session is first started. These resource specifications are available for all clients that you run, regardless of the actual host that is running the applications.
The files in /usr/lib/X11/app-defaults contain the majority of resource specifications for the clients on your system. The resources in these files are host-specific and only affect clients that are run on your machine. These resource files are read by the resource manager when the corresponding client is run.
If you want to configure a client to use a particular font, regardless of the machine on which the client is run, you should edit the client's resource file in /usr/lib/X11/sco/startup. This approach has advantages and disadvantages: a client generally executes more quickly if its resources are already recognized by the X server, however, there is no guarantee that fonts that exist on your system are available to remote clients on their host machine. If you run remote clients, it is recommended that you set font resources in host-specific resource files.
If you want to configure a client to use a particular font only when it is run on the local system, edit the appropriate client file in /usr/lib/X11/app-defaults.
If you intend to modify any of the files discussed here, it is recommended that you either make a backup copy of the file before you enter your resource changes, or comment out old resource values, using the ``!'' comment character, before entering new ones. This way you are assured of regaining the default values, if needed.
See also:
As with all resources, font resource specifications must
use the correct format:
client*resource_name: fontname
client refers to the client you want to affect.
You can supply either the client's binary or class name.
resource_name
is the actual resource variable you want to define.
You can use either the resource's class or instance name.
fontname is the actual
name of the font you are selecting. You can use the
full font name, font name wildcards, or a font alias
when setting this value.
There are two resources from which you can choose when specifying fonts:
ScoColor*fontList: -adobe-helvetica-bold-r-normal--20-140-100-100-p-105-iso8859-1
See also:
Once you have made the desired font change to the client resource file or files, the new specifications are immediately available to all users. However, if users were running the affected clients while you set the new font values, they need to restart the client to see the new fonts.
If you made font specifications in any of the server-specific resource files, users will have to restart the X server before they see the new fonts.