Use the LEGENDFONT subcommand with the SELECT command or the SETTING command to specify the typeface (font) of a column legend instead of using the default font type.
The SETTING command is valid in the global or local definition blocks of the Report Definition file. If you place the command in the global report block, it affects every report in the Report Definition file. If you place the command in the local report block, it affects only that report. The SELECT command is valid only in the local definition block of a report.
These examples show how the LEGENDFONT subcommand can be used with either the SELECT or SETTING commands.
Example 1: SELECT LEGENDFONT subcommand
This example shows how to code the SELECT command statement to reference a FONT command to print a column legend in a font other than the default font.
Suppose this FONT command statement is in the global definition block of a Report Definition file.
{ FONT colegend HELV 10, BOLD }
You can reference this font setting in a SELECT command that you place in the local definition block of a report by using this command statement:
SELECT Name LEGENDFONT colegend
This command statement overrides all other references to font that might apply to this report.
Examples 2: SETTING LEGENDFONT subcommand
This example shows how to code a SETTING command statement to reference a FONT command to print a column legend in a font other than the default font.
Suppose this FONT command statement is in the global definition block of a Report Definition file.
FIELD Name { FONT largetype HELV 14, }
You can reference this font style in a SETTING command that you place in the local definition block of a report by using this command statement.
SETTING Name { LEGENDFONT largetype }
Only the column heading is printed using the specified font. This command statement can be overridden by a SELECT command statement with a font reference in the level specification block.