Using 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:
In the font specification, explicitly assign a device-resident font using the following form:
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 Annotate Dictionary 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.
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.