Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Add Font Table Entry (ADDFNTTBLE) command adds an entry in the specified font mapping table. This command adds an entry in the user font mapping tables used by Print Services Facility (PSF) that controls:
To override a mapping entry in the system font or code page mapping tables, add the new mapping entry to a user table. Mapping entries added to a user table override any corresponding entries in the system tables.
When performing the printer to host and host to printer font mapping (first four tables above), PSF first searches the user tables for a match. If no match is found in the user mapping tables, PSF searches the appropriate system tables.
PSF selects printer-resident fonts from the font mapping tables in the following order:
Refer to Printer Device Programming, SC41-5713 for more information on font mapping tables.
Restrictions:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
FNTTBL | Font table | Single values: *PHFCS, *HPFCS, *PHCP, *HPCP Other values: Qualified object name |
Required, Positional 1 |
Qualifier 1: Font table | Name | ||
Qualifier 2: Library | Name, *CURLIB, *LIBL | ||
PHFCS | Printer to host font | Element list | Optional |
Element 1: Printer font | Element list | ||
Element 1: Identifier | 1-65535 | ||
Element 2: Width | 1-32767, *NONE, *PTSIZE | ||
Element 3: Attributes | *NONE, *BOLD, *ITALIC, *BOLDITC, *DBLWIDE, *ITCDBLWIDE | ||
Element 4: Graphic character set | Integer, *SYSVAL | ||
Element 5: Point size | 1.0-999.9, *WIDTH, *NONE | ||
Element 2: Host font | Element list | ||
Element 1: Font character set | Name | ||
Element 2: Type | *RASTER, *OUTLINE | ||
HPFCS | Host to printer font | Element list | Optional |
Element 1: Host font | Element list | ||
Element 1: Font character set | Name | ||
Element 2: Type | *RASTER, *OUTLINE | ||
Element 2: Printer font | Element list | ||
Element 1: Identifier | 1-65535, *NONE | ||
Element 2: Width | 1-32767, *NONE, *PTSIZE | ||
Element 3: Attributes | *NONE, *BOLD, *ITALIC, *BOLDITC, *DBLWIDE, *ITCDBLWIDE | ||
Element 4: Graphic character set | Integer, *SYSVAL | ||
Element 5: Point size | 1.0-999.9, *WIDTH, *NONE | ||
PHCP | Printer to host code page | Element list | Optional |
Element 1: Printer code page | Element list | ||
Element 1: Graphic character set | Integer, *SYSVAL | ||
Element 2: Code page | Integer | ||
Element 2: Host code page | Element list | ||
Element 1: Code page | Name | ||
HPCP | Host to printer code page | Element list | Optional |
Element 1: Host code page | Element list | ||
Element 1: Code page | Name | ||
Element 2: Printer code page | Element list | ||
Element 1: Graphic character set | Integer, *SYSVAL | ||
Element 2: Code page | Integer | ||
PPFCS | Printer to printer font | Element list | Optional |
Element 1: From printer font | Element list | ||
Element 1: Identifier | 1-65535 | ||
Element 2: Point size | 1.0-999.9, *ALL, *NONE | ||
Element 2: To printer font | Element list | ||
Element 1: Identifier | 1-65535 | ||
Element 2: Point size | 1.0-999.9, *ALL, *NONE |
Top |
Specifies the font mapping table entry to be added.
Single values
This table would be used when your application, such as DDS, references printer-resident fonts and the printer does not support resident fonts, for example, an IBM 3827,3825, 3820, or 3900 Model 1. Print Services Facility (PSF) must map the references from printer-resident fonts to host-resident fonts and download them.
This table would be used when your application references printer-resident code pages and the printer being used does not support printer-resident code pages. The printer-resident code page must be mapped to a host-resident code page and downloaded to the printer by PSF.
This table would be used when your application references host-resident fonts (font character sets and code pages) and the printer, such as the 4224, 4234, 4230, and 64XX, does not support downloading of host-resident fonts. PSF must map the references from host-resident fonts to printer-resident fonts.
This table is similar to the QHPFCS table, in that it is used when the application references host-resident code pages and the printer being used does not support host-resident code pages. The host-resident code page must be mapped to a printer-resident code page and downloaded to the printer by PSF.
Qualifier 1: Font table
To use a printer-resident to printer-resident font mapping table with a particular PSF printer, you need to specify the name of the font table on the FNTTBL parameter of the Create PSF Configuration (CRTPSFCFG) or Change PSF Configuration (CHGPSFCFG) command.
Qualifier 2: Library
Top |
Specifies the printer-resident to host-resident font character set mapping. The printer-resident font, along with its specified attributes will be mapped to a host-resident font character set.
Element 1: Printer font
Element 1: Identifier
Element 2: Width
Element 3: Attributes
Element 4: Graphic character set
Element 5: Point size
Element 2: Host font
Element 1: Font character set
Element 2: Type
Top |
Specifies the host-resident to printer-resident font character set mapping. The host-resident font, along with its specified attributes will be mapped to a printer-resident font.
Element 1: Host font
Element 1: Font character set
Element 2: Type
Element 2: Printer font
Element 1: Identifier
Element 2: Width
Element 3: Attributes
Element 4: Graphic character set
Element 5: Point size
Top |
Specifies the printer-resident to host-resident code page mapping. The printer-resident code page will be mapped to a host-resident code page.
Element 1: Printer code page
Element 1: Graphic character set
Element 2: Code page
Element 2: Host code page
Element 1: Code page
Top |
Specifies the mapping of a host-resident code page to a printer-resident code page.
Element 1: Host code page
Element 1: Code page
Element 2: Printer code page
Element 1: Graphic character set
Element 2: Code page
Top |
Specifies the printer-resident font substitution mapping. When a printer-resident font is not supported by a printer, you can specify the substitute printer-resident font to be used instead of the substitute printer-resident font selected by the system. Caution should be used when doing the following types of mapping as undesirable results may occur.
Element 1: From printer font
Element 1: Identifier
Element 2: Point size
Element 2: To printer font
Element 1: Identifier
Element 2: Point size
Top |
Example 1: Override Existing Font Entry in system table
ADDFNTTBLE FNTTBL(*PHFCS) PHFCS((254 84 *NONE 2039 7.0) (C0D0GT18 *RASTER))
This command adds an entry to the QPHFCS table (printer-resident to host-resident font character set table). To override the mapping of an existing entry in the system printer-resident to host resident font character set table, you need to add a corresponding entry in the QPHFCS table. Following are the recommended steps to change the mapping of an entry in the system tables.
The attributes of the resident font specified in the print application are compared to those in the font table QPHFCS. If a match is found, then the specified host resident font (C0D0GT18) is downloaded to the printer. If no match is found, then the system printer-resident to host-resident font character set table is searched.
Note that the print application may specify the normal graphic character set (for example, 697 in 697 500 specified in QCHRID system value). The 697 is mapped to 2039 and will result in a match for this entry.
Example 2: Override Existing Font Symbol Entry in system table
ADDFNTTBLE FNTTBL(*PHFCS) PHFCS((254 84 *NONE 1275 7.0) (C0SYMBOL *RASTER))
This command adds an entry to the QPHFCS table (printer-resident to host-resident font character set table) for use when using the special symbols code page (code page 259). As specified in Example 1, to override an existing entry in the system printer-resident to host-resident font character set table, you need to add a corresponding entry in the QPHFCS table.
Use the DSPFNTTBL command to display the system font mapping table and find the entry you want to change. In this example, you want to add an entry that maps a printer-resident to host resident font character set for the special symbol code page (259). As in the previous example, font identifier 254, width of 84, and point size 7.0 is to be added to the user font table (QPHFCS). The width of 84 and point size of 7.0 is gotten from the system table. The entry has no special attributes (*NONE) and graphic character set 1275 is used.
We now have two entries in the printer-resident to host-resident font character set table. Both entries have the same font identifier, width, and point size. The first entry will be used when the standard code page (500) and graphic set (697) is used by the application. The second entry will be used when a print application specifies special symbols (340 259).
Example 3: Add Font Entry that does not exist in system table
ADDFNTTBLE FNTTBL(*PHFCS) PHFCS((65500 *PTSIZE *NONE *SYSVAL 7.0) (C0NEWFNT *RASTER))
This command adds an entry to the QPHFCS table (printer-resident to host-resident font character set table) that does not exist in the system printer-resident to host-resident font character set table.
When adding entries that do not exist in the system printer resident to host-resident font character set table, it is recommended that you specify a specific value for font width or point size, but not both. For fixed pitch fonts, you should specify a font width and *WIDTH for point size. For typographic fonts, you should specify a point size and *PTSIZE for font width. In this example, a typographic font of 65500 with point size 7.0 is added to the printer-resident to host-resident font character set table (QPHFCS).
Example 4: Override Existing Code Page Entry in system table
ADDFNTTBLE FNTTBL(*PHCP) PHCP((*SYSVAL 38) (T1V00038))
This command adds an entry to the QPHCP table (printer-resident to host-resident code page table). To override an existing entry in the system printer-resident to host-resident code page table, you need to add a corresponding entry in the QPHCP table. Following are the recommended steps to change the mapping of an entry in the system tables.
In performing the font mapping, the attributes of the resident code page specified in the print application are compared to those in the code page table (QPHCP). If a match is found, then the specified host-resident code page (T1V00038) is downloaded to the printer. If no match is found, then the system printer-resident to host-resident code page table is searched.
Top |
*ESCAPE Messages
Top |