CDEFNT (Coded Font Name) Keyword in Printer Files

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

The format of the keyword is:

CDEFNT([library-name/]coded-font-name [point-size])

The coded-font-name parameter is required and can be up to 8 characters in length.

Use the optional library-name parameter to further qualify the coded font name. If you do not specify a library name, *LIBL is used to search for the coded font name at print time. If *LIBL is used, the system-supplied font libraries are added to the library list when searching for the requested font. Using the library-name parameter allows the coded font name to be located more rapidly. However, the library list is still used to locate the character set and code page defined by the coded font name.

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. For raster fonts, PSF/400 ignores any point size specified. No error messages are issued if a point size is specified.

  2. For outline fonts, a point size must be specified. If a point size is not specified for an outline font, the spooled file is held at print writer time and an error message is written to the print writer's job log.

The coded font value is validated at print time. An error message is issued if it is not valid or when the resource cannot be located.

Specify DEVTYPE(*AFPDS) on the CRTPRTF command when CDEFNT 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.

CDEFNT cannot be specified at the same level as the FONT or FNTCHRSET 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.