Usage Note 31474: Font names differ in ODS PRINTER output
When ODS PRINTER is used to create PostScript (PS), PCL, or PDF files, the default style used is STYLES.PRINTER. This style has changed in SAS 9.2 to incorporate the use of the newly licensed fonts discussed here:
In a file created with the default style (STYLES.PRINTER) or with a style inherited from STYLES.PRINTER, you might notice new fonts used like Albany AMT, Thorndale AMT, and/or Cumberland AMT. These fonts correspond to the Microsoft fonts Arial, Times New Roman, and Courier, respectively.
The sample code on the Full Code tab illustrates PROC TEMPLATE logic used to create a new style that incorporates the default SAS 9.1.3 fonts, Times or Times New Roman, and Courier or SAS Monospace.
Operating System and Release Information
SAS System | Base SAS | Microsoft Windows Server 2003 Standard Edition | 9.2 TS2M0 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.2 TS2M0 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.2 TS2M0 | |
Microsoft Windows 2000 Professional | 9.2 TS2M0 | |
Microsoft Windows 2000 Server | 9.2 TS2M0 | |
Microsoft Windows 2000 Datacenter Server | 9.2 TS2M0 | |
Microsoft® Windows® for x64 | 9.2 TS2M0 | |
Microsoft Windows 2000 Advanced Server | 9.2 TS2M0 | |
Microsoft Windows XP 64-bit Edition | 9.2 TS2M0 | |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 TS2M0 | |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 TS2M0 | |
z/OS | 9.2 TS2M0 | |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 TS2M0 | |
Microsoft Windows XP Professional | 9.2 TS2M0 | |
Windows Vista | 9.2 TS2M0 | |
64-bit Enabled AIX | 9.2 TS2M0 | |
64-bit Enabled HP-UX | 9.2 TS2M0 | |
64-bit Enabled Solaris | 9.2 TS2M0 | |
HP-UX IPF | 9.2 TS2M0 | |
Linux | 9.2 TS2M0 | |
Linux for x64 | 9.2 TS2M0 | |
OpenVMS on HP Integrity | 9.2 TS2M0 | |
Solaris for x64 | 9.2 TS2M0 | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
The code below illustrates how to explicitly request Times as the font used for titles, footnotes, data, and headers for tabular (non-Graph) procedures.
ods path (prepend) work.template(update);
proc template;
define style Styles.myPrinter;
parent = styles.printer;
replace fonts /
/* use TIMES if on non-Windows platform */
'TitleFont2' = ("Times",12pt,bold italic)
'TitleFont' = ("Times",13pt,bold italic)
'StrongFont' = ("Times",10pt,bold)
'EmphasisFont' = ("Times",10pt,italic)
'FixedEmphasisFont' = ("Courier",9pt,italic)
'FixedStrongFont' = ("Courier",9pt,bold)
'FixedHeadingFont' = ("Courier",9pt,bold)
'BatchFixedFont' = ("SAS Monospace, Courier",6.7pt)
'FixedFont' = ("Courier",9pt)
'headingEmphasisFont' = ("Times",11pt,bold italic)
'headingFont' = ("Times",11pt,bold)
'docFont' = ("Times",10pt);
replace GraphFonts /
'GraphDataFont' = ("Times",7pt)
'GraphUnicodeFont' = ("Times",9pt)
'GraphValueFont' = ("Times",9pt)
'GraphLabelFont' = ("Times",10pt)
'GraphFootnoteFont' = ("Times",10pt)
'GraphTitleFont' = ("Times",11pt,bold)
'GraphAnnoFont' = ("Times",10pt);
end;
run;
options sysprintfont="Courier";
ods pdf file="times_92.pdf" style=styles.myprinter;
title "Testing";
footnote "Another test";
proc print data=sashelp.class;
run;
ods pdf close;
Newly available and licensed fonts are used in the default style applied to the ODS PRINTER destinations (PCL/PDF/PS).
Date Modified: | 2008-03-20 09:54:59 |
Date Created: | 2008-03-14 14:27:45 |