Chapter Contents |
Previous |
Next |
SAS/GRAPH Software: Reference |
Default Hardware Fonts |
Every available hardware font for a particular device has a number associated with it. This number and the corresponding font name are listed in the Chartype window of the device entry for your device. The default hardware font is the font whose number is entered in the Chartype field in the Parameters window of the device entry. When FONT=NONE or no font is specified, SAS/GRAPH software uses the font assigned to this field.
If your device has only one hardware font (this is often
the case), the Chartype field has a value of 0. If your device has more than
one hardware font, you can assign a different default hardware font either
by specifying it with the CHARTYPE= option in a GOPTIONS statement (see the
next section) or by using the GDEVICE procedure to modify the value of the
Chartype field in the Parameters window of your device entry.
Using the CHARTYPE= option only changes the default font for the duration of your SAS session; using the CHARTYPE= option does not change the value of the field in the device entry. (See CHARTYPE for a complete description of the CHARTYPE= option.)
When you specify a hardware font by using the graphics option CHARTYPE=n and the font specification NONE, the size of the character cells is determined by the current values for the HPOS= and VPOS= options. This means that the font is drawn using the current cell size. As a result, the aspect ratio of the displayed font may be different and the height of the characters, if displayed in cells, may be affected.
In addition, if the font selected with CHARTYPE= is
not scalable and if the values of HPOS= and VPOS= do not match the values
of the Rows and Cols fields in the Chartype window, then the SIMULATE font
is substituted.
To change the default hardware font with the GDEVICE procedure, change the Chartype field in the Parameters window for the device:
Note: If you change the number in the
Chartype field in the Parameters window of the device entry, the change is
permanent and remains in effect from one SAS session to another until you
change the entry again.
(See The GDEVICE Procedure for information on viewing device entries and changing device parameters.)
Alternative Hardware Fonts |
These are the three ways to specify alternative hardware fonts:
HW | identifies the font as a hardware font. The font name must begin with the characters HW. |
xxx | are the last two or three characters of the module name in the Module field in the Detail window of your device entry. If the module name has eight characters (SASGDPSL, for example), use the last three characters (PSL). If the module name has only seven characters (SASGDVT, for example), use the last two characters (VT). |
nnn | is the Chartype number of the hardware font that you want to use as listed in the Chartype window in the device entry. This value should be a three-digit decimal number, with leading zeros if necessary. |
When you specify FONT=HWxxxnnn or hardware-font-name, the size of the character cells is determined by the values in the Rows and Cols fields in the Chartype window of the device entry, and the values of the HPOS= and VPOS= options are ignored for the font. Consequently, the font retains its original proportions. In addition, with this method the font catalog is checked for proportional spacing information. This information is used by the software to determine how much space to reserve for proportional text. See Graphics Options and Device Parameters Dictionary for additional information.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.