Usage Note 24024: In ODS RTF, how can I change the fonts of the cell values?
The fonts of the cell values can be changed by modifying
the value associated with the
string 'docFont'; see example 1.
This can also be done by modifying
the style element Data; see example 2.
/* Example 1 */
proc template;
define style styles.newrtf;
parent=styles.rtf;
replace fonts /
'TitleFont2' = ("Times",12pt,Bold Italic)
'TitleFont' = ("Times",13pt,Bold Italic)
'StrongFont' = ("Times",10pt,Bold)
'EmphasisFont' = ("Times",10pt,Italic)
'FixedEmphasisFont' = ("Courier New, Courier",9pt,Italic)
'FixedStrongFont' = ("Courier New, Courier",9pt,Bold)
'FixedHeadingFont' = ("Courier New, Courier",9pt,Bold)
'BatchFixedFont' = ("SAS Monospace, Courier New, Courier",6.7pt)
'FixedFont' = ("Courier New, Courier",9pt)
'headingEmphasisFont' = ("Times",11pt,Bold Italic)
'headingFont' = ("Times",11pt,Bold)
/* 'docFont' = ("Times",10pt); */
'docFont' = ("Times",8pt);
end;
run;
ods rtf body='rf2.rtf' style=styles.newrtf;
proc print data=sashelp.class;
title 'Modifying fonts for cell values';
run;
ods rtf close;
/* Example 2 */
proc template;
define style styles.newrtf;
parent=styles.rtf;
style data from data /
font= ("arial",10pt);
end;
run;
ods rtf body='rf2.rtf' style=styles.newrtf;
proc print data=sashelp.class;
title 'Modifying fonts for cell value';
run;
ods rtf close;
See more information about
PROC TEMPLATE and the RTF destination.
Operating System and Release Information
*
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.
Type: | Usage Note |
Priority: | low |
Topic: | SAS Reference ==> ODS (Output Delivery System) Third Party ==> Output ==> RTF
|
Date Modified: | 2004-06-29 16:24:02 |
Date Created: | 2004-06-25 12:55:31 |