Specifying Alternative Device-Resident Fonts

An alternative device-resident font can be specified in any SAS statement where a font specification is valid. You can use more than one device-resident font in a single graph or even in a single statement. All of the fonts that you specify must exist on your device. If you specify a device-resident font, make sure that the font is available on the device and that there is a corresponding Chartype value for the font. If you request a device-resident font that does not have a Chartype defined, SAS/GRAPH substitutes the SIMULATE font.
These are the three ways to specify alternative device-resident fonts:
  • In the font specification, explicitly assign a device-resident font using the following form:
    HWxxxnnn
    HW
    identifies the font as a device-resident 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 device-resident 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.
  • In the font specification, explicitly assign a device-resident font using the following form:
    device-resident-font-name
    identifies the name of the device-resident font that is listed in the Chartype window of the device entry. Device-resident-font-name must be enclosed in quotation marks and the maximum length is 256 characters. The specified font name is converted internally to the HWxxxnnn name. Note that in Annotate, the specified font name must be enclosed in both double quotes and single quotes (see The Annotate Function, Variable, and Macro Dictionaries for details).
  • Assign one of the fonts listed in the Chartype window of your device entry as the default device-resident font with the CHARTYPE= graphics option. You can also change the default device-resident font by modifying the value of the Chartype field in the Parameters window of your device entry. Then you can use FONT=NONE in your SAS/GRAPH procedure or statement to specify the new default device-resident font.
When you specify FONT=HWxxxnnn or device-resident-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. 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 SAS/GRAPH to determine how much space to reserve for proportional text. See Graphics Options and Device Parameters Dictionary for additional information.