Chapter Contents

Previous

Next
SYSPRINTFONT

SYSPRINTFONT



Sets the font to use when printing to the current default printer

Default: None
Valid in: configuration file, SAS invocation, OPTIONS statement
Windows specifics: all


Syntax
Details
Examples
Example 1: Specifying a Font to the Default Printer
Example 2: Specifying a Font to a Named Printer
See Also

Syntax

-SYSPRINTFONT "facename" <BOLD | NORMAL><REGULAR | ITALIC><character-set> <pointsize> <NAMED "printer-name" | DEFAULT | ALL>
SYSPRINTFONT="fontname" <BOLD | NORMAL><REGULAR | ITALIC><character-set> <pointsize> <NAMED "printer-name" | DEFAULT | ALL>

"face-name"
specifies the name of the font face to use for printing. This must be a valid, case-sensitive font face name (for example, "SAS Monospace" or "Courier") that matches the name of the font as it is installed on your system. The face-name must be enclosed in double quotation marks. This 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.

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

characterset
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.

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.

DEFAULT
updates the font information for the printer used by the -SYSPRINT system option in the SASUSER.PROFILE2 catalog. This is the default keyword if none is specified.

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 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.

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 will be

  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 doesn't specify a valid font for the printer, and the current display font is scalable, then SAS will use the display font to print.

  4. If the current display font is not scalable, SAS will use 10-point SAS Monospace.

  5. If the SAS Monospace font is not available, SAS will use the printer's default font to print.


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 the SAS System:

-sysprintfont "Courier New" named 
    "HP LaserJet IIIsi Postscript on LPT1:"

See Also


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.