FNTCHRSET (Font Character Set) Keyword in Printer Files

Use this field- or record-level keyword to specify the font for printing a named or constant field within a record.

The format of the keyword is:

FNTCHRSET([library-name/]font-character-set [library-name/]code-page [point-size])

The font-character-set and code-page parameters are required. Both can be up to 8 characters long.

Use the optional library-name parameter to further qualify the font character set or code page. If library-name is not specified, *LIBL is used to search for the font character set and code page. If *LIBL is used, the system-supplied font libraries are added to the library list when searching for the requested font.

Note:
If an application uses private resources (for example, fonts, page segments, overlays, or GDF files not distributed with the system), be aware of the following. When referencing these resources, if you specify *LIBL or you do not specify a library name, the resources must be available through the library list used by the application creating the spooled file.

Use the optional point-size parameter to further define a numeric font that specifies a point size. Specify the point-size paramter as an expression of the form (*POINTSIZE value). The valid values for this parameter are 0.1 through 999.9.

Notes:

  1. PSF/400 ignores the raster font value if it is not *NONE. PSF/400 does not do any validation at spool intercept time, and it does not issue any error messages.

  2. If a value of *NONE is specified for an outline font, PSF/400 cannot print the spooled file. The spooled file is held at writer time. PSF/400 does not do any validation at spool intercept time.

The font character set and code page values are validated at print time. An error message is issued if they are not valid.

Note:
When a printer file is created and a character set and code page are specified for the font character set (FNTCHRSET) parameter, column spacing is done using this printer file level parameter. Any fonts or code pages specified in the FNTCHRSET keyword are ignored and the font and code page specified in the printer file parameter FNTCHRSET is used.

Specify DEVTYPE(*AFPDS) on the CRTPRTF command when FNTCHRSET is specified in the file. If DEVTYPE is changed to anything other than *AFPDS, the keyword is ignored and a warning message is issued at print time.

FNTCHRSET cannot be specified at the same level as the FONT and CDEFNT keywords.

Note:
Feature PSF/400 is required to use this keyword. If PSF/400 is not installed, you will not be able to print files using this keyword and specifying DEVTYPE(*AFPDS).

Option indicators are valid for this keyword.