SYSPRINTFONT System Option: Windows

Specifies the font to use when SAS is printing to the current default printer.

Valid in: configuration file, SAS invocation, OPTIONS statement, SAS System Options window
Category: Log and Procedure Output Control: Procedure Output
PROC OPTIONS GROUP= LISTCONTROL
Default: none
Windows specifics: all
See: SYSPRINTFONT= System Option in SAS System Options: Reference

Syntax

Syntax Description

font-name

specifies the name of the font to use for printing. This name must be a valid font name (for example, “SAS Monospace” or “Courier”) that matches the name of the font as it is installed on your system. The font-name must be enclosed in double quotation marks, and is a required argument.

BOLD | NORMAL

specifies the weight of the font. The default is NORMAL.

REGULAR | ITALIC

specifies the style of the font. The default is REGULAR.

character-set

specifies the character set to use for printing. The default is “Windows”. Valid values are Western, Central European, Cyrillic, Greek, Turkish, Arabic, Baltic, and Thai. If the font does not support the specified character set, the default character set is used. If the default character set is not supported by the font, the font's default character set is used.

point-size

specifies the point size to use for printing. This value must be an integer from 1 to 7200, inclusive. If you omit this argument, SAS uses 10 points.

NAMED “printer-name

updates the font information for the named printer in the Sasuser.Profile2 catalog. The printer name must exactly match the name shown in the Print Setup dialog box (except that the printer name is not case sensitive). The printer-name must be enclosed in double quotation marks. This keyword is optional.

UPRINT=“printer-name

specifies a Universal Printer to which these settings apply. UPRINT is valid only for printers that are listed in the SAS registry. The printer-name must exactly match the name shown in the Print Setup dialog box, except that the printer name is not case sensitive. If the Universal Prints is more than one word, printer-name must be enclosed in single or double quotation marks. The quotation marks are stored with the printer-name.

DEFAULT

specifies the default font information for the printer used by the -SYSPRINT system option in the Sasuser.Profile2 catalog.

ALL

updates the font information for all installed printers in the Sasuser.Profile2 catalog. This keyword is optional.

Details

The SYSPRINTFONT system option sets the font to use when SAS is printing to the current default printer (which might be specified in the SYSPRINT system option) or to the printer identified with the optional keywords NAMED or ALL. This information is stored in the Sasuser.Profile2 catalog.
Enclose the SYSPRINTFONT option arguments in parenthesis when you specify the option in a configuration file, on the command line, or in the System Options window. Parentheses are not required if you specify the SYSPRINTFONT system option in the OPTIONS statement.
If you use SYSPRINTFONT with either the DEFAULT or no keyword, and later use the SYSPRINT system option or the Print Setup dialog box to change the current default printer, then the font used with the current default printer is
  1. The font specified in Sasuser.Profile2 for the given printer, if any.
  2. The font specified with SYSPRINTFONT, if the specified font exists on the printer.
  3. If there is no font defined for the printer in Sasuser.Profile2, and SYSPRINTFONT does not specify a valid font for the printer, and the current display font is scalable, then SAS uses the display font to be printed.
  4. If the current display font is not scalable, SAS uses 10-point SAS Monospace.
  5. If the SAS Monospace font is not available, SAS uses the printer's default font to be printed.
Note: To ensure that row and column separators and boxed tabular reports are printed legibly when using the standard forms characters, you must use these resources:
  • the SAS Monospace or the SAS Monospace Bold font
  • a printer that supports TrueType fonts

Examples

Example 1: Specifying a Font to the Default Printer

This example specifies to use the 12-point SAS Monospace font on the default printer:
-sysprintfont ("SAS Monospace" 12)

Example 2: Specifying a Font to a Named Printer

This example specifies to use 10-point Courier New on the printer named HP LaserJet IIIsi PostScript, attached to LPT1:. Note that the name given for the printer is how it appears in the Print Setup dialog box in SAS:
-sysprintfont ("Courier New" named
    "HP LaserJet IIIsi Postscript on LPT1:")

Example 3: Specifying a Font to a Universal Printer on the SAS Command Line

This example specifies the Albany AMT font for the PDF Universal Printer:
sysprintfont=('courier' 11 uprint='PDF')