Font-related examples

These examples help you get familiar with fonts and font substitution on the IBM® i.

Verify whether your font ID is supported by a certain printer

If you want to verify that a font ID is supported by a certain printer, refer to Printer font support. For example, locate font ID 112. Font ID 112 is supported by the 3812 and 3816 SCS and IPDS printers and the 4028 printer (this is indicated by blanks in those spaces). The 4019 printer supports font ID 112 on a font card resident in the 4019 printer. The 4224, 4234, and 5219 printers substitute font ID 86 or 87.

Note: A font card is a hardware card that can have many font character sets resident on it. Font cards can be installed in printers to provide additional fonts.

Find out what font ID the system substitutes if the printer you want to use does not support your font ID

If your application uses a font ID that is not supported on all printers, you can determine the substitution by referring to Printer font support. For example, locate font ID 30. The table shows that font ID 30 is supported on the 3812 and 3816 SCS and IPDS printers. However, if you are using any of the other printers listed in the table, font ID 11 is substituted for font ID 30.

Find out what font ID the system substitutes if your font ID is not available on the system or on the printer

For example, assume your application calls for font ID 4 and you want to print the spooled file on a 4224 printer. To determine if font ID 4 is a supported font or one that is substituted for, follow these steps:

  1. Refer to Printer font support and see if your font ID is listed. Since font ID 4 is not listed, continue with the next step.
  2. Refer to Font substitution by font ID range and see what font is substituted. Font ID 11 is substituted for fonts 0 through 65.
  3. Refer to Printer font support and locate the substituted font ID. Font ID 11 is supported on the 4224 printer. The result of the font ID substitution is that your application will print using font ID 11.