You can specify font family, size, color, and style for any report element you can identify in a StyleSheet:
For detailed syntax, see Identifying a Report Component in a WebFOCUS StyleSheet. For details on font options, including size, color, and style, see Formatting Report Data.
This request uses a StyleSheet to select 12-point Arial bold for the report heading (Sales Report), and 10-point Arial italic for the default column titles (Category, Product, Unit Sales, Dollar Sales), based on the HTML point scale, which differs from standard point sizes. See Formatting Report Data.
For an HTML report, the font name must be enclosed in single quotation marks. The StyleSheet attribute TYPE = TABHEADING identifies the report heading, and the attribute TYPE = TITLE identifies the column titles.
TABLE FILE GGSALES SUM UNITS DOLLARS BY CATEGORY BY PRODUCT ON TABLE SUBHEAD "Sales Report" ON TABLE SET PAGE-NUM OFF ON TABLE SET ONLINE-FMT HTML ON TABLE SET STYLESHEET * TYPE = REPORT, GRID=OFF, $ TYPE = TABHEADING, FONT = 'ARIAL', SIZE = 12, STYLE = BOLD, $ TYPE = TITLE, FONT = 'ARIAL', SIZE = 10, STYLE = ITALIC, $ ENDSTYLE END
The output is:
An internal cascading style sheet enables you to specify an absolute size, measured in points, rather than the corresponding HTML point scale, thereby providing greater control over the appearance of fonts in a report. See Formatting Report Data and Controlling Report Formatting.
This request generates an internal cascading style sheet and specifies font characteristics for the report heading.
TABLE FILE GGSALES SUM UNITS DOLLARS BY CATEGORY BY PRODUCT ON TABLE SUBHEAD "Sales Report" ON TABLE SET PAGE-NUM OFF ON TABLE SET ONLINE-FMT HTML ON TABLE SET HTMLCSS ON ON TABLE SET STYLESHEET * TYPE = REPORT, GRID=OFF, $ TYPE = TABHEADING, FONT = 'ARIAL', SIZE = 12, STYLE = BOLD, $ TYPE = TITLE, FONT = 'ARIAL', SIZE = 10, STYLE = ITALIC, $ ENDSTYLE END
The output is:
This request includes the system variable &DATE in the heading. Styling is italic to distinguish it from the rest of the heading text, which is bold. The spot marker <+0> creates two items in the heading so that each one can be formatted separately.
TABLE FILE GGSALES PRINT BUDDOLLARS DOLLARS BY STCD WHERE STCD EQ 'R1019' ON TABLE SUBHEAD "Sales Report for Store Code R1019 <+0>&DATE" ON TABLE SET PAGE-NUM OFF ON TABLE SET ONLINE-FMT HTML ON TABLE SET STYLESHEET * TYPE=REPORT, GRID=OFF,$ TYPE=TABHEADING, FONT='TIMES', SIZE=10, STYLE=BOLD,$ TYPE=TABHEADING, ITEM=2, STYLE=ITALIC,$ ENDSTYLE END
The partial output is: