Problem Note 36156: If the Courier New font is requested for an ODS RTF file, the Courier font might be used instead
On Microsoft Windows systems, ODS RTF uses files from the Fonts directory on the system (Settings => Control Panel => Fonts) in addition to those listed in the SAS registry to provide fonts for the RTF files it creates. The list of available fonts can be generated with the following code in SAS® 9.1.3:
proc registry startat="\CORE\PRINTING\PSL\FONTS" list;
run;
Starting in SAS® 9.2, the following registry location provides the list of available fonts for ODS RTF:
proc registry startat="\CORE\PRINTING\FREETYPE\FONTS" list;
run;
From a Windows Start menu, the fonts listed from Settings => Control Panel => Fonts are also available to the ODS RTF file if the SAS option NOUNIVERSPRINT is in effect. If a desired font like Courier New is listed there, click the right mouse button on the name and choose Properties to find the .ttf file(s) that define(s) the font. This can be moved to the desired non-Windows location, or on Windows systems, can be used directly to run the PROC FONTREG code shown below. In the case of the Courier New font specifically, it is also recommended to move the files: cour.ttf, couri.ttf, courbd.ttf and courbi.ttf, which allow italicizing and bolding of that font.
Use the PROC FONTREG code below (presuming the TTF files are saved to the /TMP directory) to add the font to the SAS registry, where it will be available to the ODS RTF code in that SAS session:
proc fontreg; * USESASHELP;
fontpath "/tmp";
run;
NOTE: If you need to make the font available to all users on that machine, you must run the code with an administrative ID and use the USESASHELP option that is commented out in the code above.
It is also important that the font be installed on any location where the RTF file is viewed, as Microsoft Word needs the font to be available to correctly render the file with the desired font name.
Operating System and Release Information
| SAS System | Base SAS | z/OS | 9.1 TS1M0 | |
| 64-bit Enabled AIX | 9.1 TS1M0 | |
| 64-bit Enabled HP-UX | 9.1 TS1M0 | |
| 64-bit Enabled Solaris | 9.1 TS1M0 | |
| HP-UX IPF | 9.1 TS1M0 | |
| Linux | 9.1 TS1M0 | |
| OpenVMS Alpha | 9.1 TS1M0 | |
| Tru64 UNIX | 9.1 TS1M0 | |
| Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M3 SP4 | |
| Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.1 TS1M3 SP4 | |
| Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.1 TS1M3 SP4 | |
| Microsoft Windows XP 64-bit Edition | 9.1 TS1M3 SP4 | |
| Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 SP4 | |
| Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 SP4 | |
| Microsoft Windows 2000 Server | 9.1 TS1M3 SP4 | |
| Microsoft Windows 2000 Professional | 9.1 TS1M3 SP4 | |
| Microsoft Windows NT Workstation | 9.1 TS1M3 SP4 | |
| Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 SP4 | |
| Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 SP4 | |
| Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 SP4 | |
| Microsoft Windows XP Professional | 9.1 TS1M3 SP4 | |
| Windows Vista | 9.1 TS1M3 SP4 | |
| Windows Vista for x64 | 9.1 TS1M3 SP4 | |
| Linux on Itanium | 9.1 TS1M3 SP4 | |
| Solaris for x64 | 9.1 TS1M3 SP4 | |
*
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.
If the Courier New font is requested in PROC TEMPLATE or STYLE= options, the Courier font might display instead when the RTF file is opened in Microsoft Word.
| Type: | Problem Note |
| Priority: | medium |
| Date Modified: | 2009-06-22 11:21:05 |
| Date Created: | 2009-06-05 14:09:41 |