SAS 9.1 Companion For Unix Enivronments

Difference between the System Font and Windowing Environment Fonts

SAS uses two main types of fonts:

Note  

It is best to change fonts before invoking any applications. Changing fonts while applications are running might result in unexpected behavior.

How SAS Determines Which Windowing Environment Font to Use

SAS determines the normal (not bold) default windowing environment font as follows :

  1. If you have saved a font in SASUSER.PROFILE.DMSFONT.UNXPREFS through the Font dialog box, this font is used as the default normal font.

  2. If you have not saved a font through the Font dialog box, but you have set the SAS.DMSFont resource, SAS uses the font specified by this resource as the default font.

  3. If you have not set the SAS.DMSFont resource, SAS uses any *Font resources that you have defined.

  4. If you have not set the *Font resources, but you have set the SAS.DMSFontPattern resource, SAS uses this resource to determine which font to use. The SAS.DMSfontPattern resource will have no effect if a *Font resource is defined.

  5. If no resources have been set, SAS chooses a font from the fonts that are available on your server.

If you have not specified a value for the SAS.DMSboldFont resource, SAS uses the default normal font to determine the default bold font. If the normal SAS.DMSFont has an XLFD name associated with it, then SAS selects the matching bold font and loads it. If SAS cannot automatically select or load a bold font, the normal font is also used for the bold font.

In many cases, font names are given aliases so that a shorter name can be used to refer to a font that has an XLFD name associated with it. The name used in determining a bold font is based on the XA_FONT font property for the normal font.

Customizing Fonts using the Fonts Dialog Box

Introduction to the Fonts Dialog Box

The Fonts dialog box enables you to change the windowing environment font for the entire SAS session. If you change the font, the font that you select is stored in SASUSER.PROFILE.DMSFONT.UNXPREFS and will be used in future SAS sessions.

How to Change the Windowing Environment Font

To change the windowing environment font, complete the following steps:

  1. To open the Fonts dialog box, use one of the following methods :

    • Issue the DLGFONT command in the command window.

    • Select Tools – Options – Fonts

      Display 3.7: Fonts Dialog Box

    • Select a font name and, if desired, a size , weight, and slant. (Not all fonts are available in all sizes, weights, or slants.) The Sample field shows what the selected font looks like.

    • Click OK to change the existing font to the selected font.

To return to the default font, click Default .

To cancel any changes and exit the Fonts dialog box, click Cancel .

Specifying Font Resources

You can customize the fonts used in the SAS windowing environment with the following resources:

SAS.DMSFont: font-name

SAS.DMSboldFont: font-name

SAS.DMSDBfont: font-name

SAS.DMSDBboldFont: font-name

SAS.DMSfontPattern: XLFD-pattern

SAS.fontPattern: XLFD-pattern

SAS.systemFont: font-name

Specifying Font Aliases

If your server does not provide fonts to match all of those supplied by SAS, you can use font alias resources to substitute the fonts available on your system. (Ask your system administrator about the fonts that are available.) Use the following syntax to specify font aliases in your resource file:

SAS. supplied-font Alias: substitute-family

where supplied-font is the name of the font supplied by SAS. substitute-family is the family name of the font that you want to substitute.

Caution  

Do not specify a SAS font as a font alias. There might be a conflict if you specify a font supplied by SAS as a font alias, as in the following example:

SAS.timesRomanAlias: symbol

Assigning this value to a font alias prevents the selection of any symbol fonts through the font selection dialog box, because they are specified as the Times Roman alias.

The following table lists SAS font alias resource names.

Example: Substituting the Lucida Font for Palatino

Suppose that your system does not have a Palatino font, but has the following Lucida font:

b&h-lucida-bold-r-normal-sans- 10-100-75-75-p-66-iso8859-1

To substitute Lucida for Palatino, include the following line in your resource file:

SAS.palatinoAlias: lucida

Категории