Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
Common Desktop Environment: Advanced User's and System Administrator's Guide > Chapter 4 Registering an Application

Step 1: Modifying Font and Color Resources

» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index

NOTE: For an example of modifying resources for an application, see “Steps to Registering "BestTextEditor"”in the section “Example of Creating a Registration Package”.

The desktop provides mechanisms for setting and manipulating interface fonts and window colors. In order for an application to use these mechanisms properly, you may have to modify the application's app-defaults file.

Modifying Font Resources

NOTE: This section applies to applications created using Motif 1.2™ (or later versions). Style Manager cannot set interface fonts for applications written using earlier versions of Motif.

The desktop Style Manager will set interface fonts for applications created using Motif 1.2 (or later versions) if the application does not specify application-specific interface fonts.

Style Manager provides two fonts:

system font

Used by system areas such as labels, menus, and buttons

user font

Used for editable areas such as text fields

Each font is provided in seven sizes, labeled 1 through 7 in the Fonts dialog box. The Style Manager fonts are connected to actual fonts on the system through Style Manager resources set in /usr/dt/app-defaults/language/Dtstyle.

If you want the application to use the Style Manager fonts, you should remove any application resources that specify fonts. The desktop will automatically set the application's resources appropriately:

FontList

Set to system font

XmText*FontList

Set to user font

XmTextField*FontList

Set to user font

Modifying Color Resources

Style Manager provides the ability to change application colors dynamically. The application must be a Motif 1.1 or later client. Clients written with other toolkits cannot change color dynamically; color changes take effect when the client is restarted.

The easiest way to use the dynamic colors provided by the desktop is to remove any application color resources for background and foreground color.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.