Usage Note 23366: In ODS HTML output, how can I modify the fonts responsible for the data values in the table cells?
Use REPLACE
to change the font that is associated with the string 'docFont' in the FONTS
style element; see example 1.
You can also modify the cell values directly
in the style element that renders the data
values, which is the DATA style element; see example 2.
View output.
/* example 1 */
proc template;
define style styles.newfonts;
parent=styles.default;
replace fonts /
'TitleFont2' = ('Arial, Helvetica, Helv',4,Bold Italic)
'TitleFont' = ('Arial, Helvetica, Helv',5,Bold Italic)
'StrongFont' = ('Arial, Helvetica, Helv',4,Bold)
'EmphasisFont' = ('Arial, Helvetica, Helv',3,Italic)
'FixedEmphasisFont' = (Courier,3,Italic)
'FixedStrongFont' = (Courier,4,Bold)
'FixedHeadingFont' = (Courier,4)
'FixedFont' = (Courier,4)
'headingEmphasisFont' = ('Arial, Helvetica, Helv',4,Bold Italic)
'headingFont' = ('Arial, Helvetica, Helv',4,Bold)
'docFont' = ('Arial, Helvetica, Helv',1); /* <------ */
end;
run;
/* example 2 */
proc template;
define style styles.newfonts;
parent=styles.default;
style data from data /
font_size=6
font_face=arial;
end;
run;
See also the full PROC TEMPLATE FAQ and Concepts.
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 ==> HTML
|
| Date Modified: | 2003-09-22 11:14:05 |
| Date Created: | 2003-08-11 09:00:16 |