Chapter Contents |
Previous |
Next |
SAS Companion for UNIX Environments |
SAS uses two main types of fonts:
*.systemFont
resource. If this resource is not defined, SAS uses a
helvetica font.
Note: It is best to change fonts before invoking any
applications. Changing fonts while applications are running might result in
unexpected behavior.
Using the Host Fonts Dialog Box |
To change the windowing environment font, issue the DLGFONT command or select
Tools | Options | Fonts... |
Host Fonts Dialog Box
To change the font, select a
new 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.
After you have selected a name, size, weight, and slant, select
OK
.
The windowing environment font is stored in SASUSER.PROFILE.DMSFONT.UNXPREFS and will be used in future SAS sessions.
To return to the default font, select
Default
.
To cancel any changes and leave the Host Fonts dialog
box, select
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-patternThe XLFD-pattern that you
specify for
SAS.DMSfontPattern
must contain the same number of fields as an XLFD. An asterisk (*)
character means that any value is acceptable for that particular field. For
example, the following pattern matches any font that has a regular slant,
is not bold, is monospaced, and is an iso8859 font:
SAS.DMSFontPattern: -*-*-*-r-*--*-*-*-*-m-*-iso8859-1
SAS uses the XLFD-pattern to choose a font as follows:
SAS.DMSfontPattern
resource.
SAS.fontPattern
: XLFD-pattern *
usually does not affect performance to a significant degree. You
may want to restrict the font search if you are running SAS on a server with
an excessive number of fonts or that is operating in performance-limited environment.How SAS Determines Which Font To Use |
SAS determines the normal (not bold) default windowing environment font as follows:
SAS.DMSFont
resource, SAS uses the font specified by this resource
as the default font.
SAS.DMSFont
resource, SAS uses any *Font resources
that you have defined.
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.
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.
Specifying Font Aliases |
SAS.supplied-fontAlias: substitute-family
supplied-font is the name of the font supplied by the SAS System. substitute-family is the family name of the font you wish to substitute. For example, if your system does not have a Palatino font, but it does have a Lucida font, you can include the following line in your resources file to substitute Lucida for Palatino:
SAS.palatinoAlias: lucida
SAS Font Alias Resources lists SAS font alias resource names.
Resource Name | Class Name |
---|---|
SAS.timesRomanAlias |
TimesRomanAlias |
SAS.helveticaAlias |
HelveticaAlias |
SAS.courierAlias |
CourierAlias |
SAS.symbolAlias |
SymbolAlias |
SAS.avantGardeAlias |
AvantGardeAlias |
SAS.bookmanAlias |
BookmanAlias |
SAS.newCenturySchoolbookAlias |
NewCenturySchoolbookAlias |
SAS.palatinoAlias |
PalatinoAlias |
SAS.zapfChanceryAlias |
ZapfChanceryAlias |
SAS.zapfDingbatsAlias |
ZapfDingbatsAlias |
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.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.