Previous Page | Next Page

Using Device-Resident Fonts

Specifying the Full Font Name

You can specify the full font name in any SAS statement where a font specification is valid. For example, you can specify the full font name in the FTEXT=font graphics option or the FONT=font specification on a TITLE statement. For the value font, specify the full font name exactly as it appears in the Chartype window of the device entry. For example, to specify the Times-Roman font on a TITLE statement when you use the PS300 device, use this code:

title font="Times-Roman" "Testing the Times-Roman font";

SAS allows up to 255 characters for the font name. The font name might contain spaces. If the font name is longer than 40 characters, PROC GDEVICE in fullscreen mode only displays the first 37 characters, followed by an ellipsis (...). To see the complete font name when the name is longer than 40 characters, use PROC GDEVICE with the NOFS (no fullscreen) option as follows:

proc gdevice c=sashelp.devices nofs;
   list driver-name;
run;
quit; 

When a font is quoted, SAS first looks at the Chartype window of the device driver entry to determine whether it is a valid device-resident font. If the font is not found in the Chartype window, SAS then checks to determine whether the quoted font is a valid SAS/GRAPH font. If the font is not recognized as either a valid device-resident font or a valid SAS/GRAPH font, the SIMULATE font is used.

Previous Page | Next Page | Top of Page