3. Click the Properties button.
4. Click the Font tab.
This window contains drop-down boxes for Font, Style, Weight, Size (in points), and
Character Set.
5. Click the arrow on the right side of the Font box and scroll through the list of
available fonts.
TrueType fonts are indicated by the letters ttf enclosed in angle brackets (< >), and
Type1 fonts are indicated by the letters
at1 enclosed in angle brackets (< >). For
example, the TrueType font Albany AMT is listed as <ttf> Albany AMT and the
Type1 Font
Times is listed as <at1> Times. The three-character tag enclosed in
angle brackets makes the distinction between the different types of fonts with the
same name, such as <ttf> Symbol and a Symbol font that resides on a physical
printer. Fonts that do not have a <ttf> tag or an <at1> tag reside in the printer's
memory. To ensure that you are using SAS fonts when you specify a font that has
different types, use only the font syntax with the angled brackets. For example, you
can specify the Symbol font as follows:
<ttf> Symbol.
6. Select the font that you want to use.
7. Click OK to return to the Print dialog box.
8. Click OK to create your output.
Specifying Fonts with SAS Program Statements
You can specify a font in the TITLE statement. For example, if you want to use the
TrueType font Albany AMT in a TITLE statement, include the following line of code in
your SAS program.
Title1 f="Albany AMT" "Text in Albany AMT";
You can also specify attributes such as style or weight in the TITLE statement by using
the forward slash (/) as a delimiter.
Title1 f="Albany AMT/Italic/Bold" "Text in Bold Italic Albany AMT";
For ODS templates, the attributes are specified after the text size parameter. See
“Specifying a Font with PROC PRINT and a User-Defined ODS Template” on page 296
for a complete example.
Note: You should use the <ttf> tag only when it is necessary (for example, to distinguish
between a TrueType font and another type of font with the same name).
Specifying a Font with the SYSPRINTFONT Option
The SYSPRINTFONT= system option sets the default font that you want to use for
printing from windows such as the Program Editor, the Log, and Output windows. For
example, you could use the SYSPRINTFONT= system option to print your output in the
Albany AMT font by submitting the following OPTIONS statement.
options sysprintfont=("Albany AMT");
You can also use the SYSPRINTFONT= system option to specify the weight and size of
a font. For example, the following code specifies an Arial font that uses bold face, is
italicized, and has a size of 14 points.
options sysprintfont=("Arial" bold italic 14);
You can override the default font by explicit font specifications or ODS styles.
292 Chapter 15 • Printing with SAS