FONT Command

FONT {[lname] cfname | lname {'cfname' | 
  CS character-set-name CP code-page-name | 
  GRID hex-grid}}
[SBCS | DBCS]
[HEIGHT n [POINTS | IN | CM | MM | PELS]]
TYPE [RATIO percent]
[ROTATION [0 | 90 | 180 | 270]]
[{RESOLUTION | RES} {240 | 300} 
   [{METRICTECHNOLOGY | METTECH} {FIXED | RELATIVE}]] ;

TYPE (Traditional and Record Format)

[TYPE {EBCDIC | ASCII | UNICODE}]

TYPE (XML)

TYPE {EBCDIC | ASCII | UNICODE}

The FONT command is used to identify the fonts that are to be specified with the following commands:

  • Traditional:PRINTLINE, FIELD, and TRCREF commands
  • Record Layout:LAYOUT and FIELD commands
  • XML:XLAYOUT and FIELD commands

A maximum of 127 font names for each page definition can be identified.

Note: Naming a font with the FONT command does not, by itself, affect your output. You must specify the font in one of the commands listed above for the font to become effective. You must name at least one font in a Record Format or XML page definition.

FONT commands immediately follow the PAGEDEF command. A separate FONT command is required:

  • For each font used within a page definition
  • For each rotation of the same font

Note: For a Traditional exception, see the TRCREF command.
FONT
FONT {[lname] cfname | lname {'cfname' | 
  CS character-set-name CP code-page -name | 
  GRID hex-grid}}
Identifies the fonts to be specified in the commands listed above.
lname
Local name for the font. Specifies an unquoted alphanumeric name of 1 to 16 characters (local name) of the font to be used in this page definition. The name must conform to the token rules and must be unique within this page definition.

lname is optional if cfname is specified.

cfname
Coded font name. Specifies an alphanumeric name of 1 to 6 characters (user-access name) of the coded font to be used in this page definition. Specify this name without the Xn prefix.
cfname
Quoted full user-access name. Specifies a quoted alphanumeric name of 1 to 8 characters of the coded font to be used in this page definition. The name can contain blanks and special characters. No upper case folding or prefix is added to the name. The 'cfname' variable is intended for outline fonts and allows them to be selected without overriding the HEIGHT specified in the CFI structured field in the coded font. Enter the full outline font name as a quoted name and do not enter the HEIGHT parameter. For example, if you enter:
FONT myfont 'XZM32F'
the outline font XZM32F is used with no overriding HEIGHT parameters.
    Note:
  1. The quoted name of the font name is primarily intended for outline fonts. If you use a quoted name for a raster font, you must be sure that you have the name corresponding to the correct rotation of the font.
  2. If you use the quoted name of the font name, you must also enter an lname (local name); sometimes called an alias name.
  3. You can still specify the HEIGHT command if you want to override the coded font height.
CScharacter-set-name
Specifies an alphanumeric name of 1 to 6 characters of the character set to be used in this page definition. Specify this name without the Cn prefix.
CPcode-page-name
Specifies an alphanumeric name of 1 to 6 characters of the code page without the T1 prefix to be used in this page definition.
GRIDhex-grid
Specifies the 16-character hexadecimal GRID.