IBM Support

Computer Output Reduction (COR) Font Control

Troubleshooting


Problem

This document provides additional information on the CPI in COR Mode (CPICOR) tag in a modified Workstation Customizing Object (WSCST).

Resolving The Problem

This document provides additional information on the CPI in COR Mode (CPICOR) tag in a modified Workstation Customizing Object (WSCST). The CPICOR tags are used by Host Print Transform (HPT) to determine which PCL 5 font string to send to the printer whenever it prints in landscape and in a compressed font because of the Computer Output Reduction (COR) function.

Other documents involving the CPICOR tags:
Controlling the Font that Host Print Transform (HPT) Selects when Performing Computer Output Reduction (COR)
Printing at 20 Characters Per Inch (CPI) on Older HP LaserJet Compatible Printers
Breakdown of HP PCL5 Font Strings
 
CAUTION:
These instructions are provided AS IS. Any assistance with editing the Workstation Customization Table must be done through a consulting agreement, such as IBM i Customized Services or Lab Services.

Basic Steps for Creating and Using a Workstation Customization Object
Follow the steps in Basic Steps for Creating and Using a Workstation Customization Object for retrieving and editing the WSCST source, edit the source per the information in this document.  Return to the Basic Steps document to implement the WSCST object.

Computer Output Reduction (COR) Font Control
Locate the :CPICOR tags in the workstation customizing object source.
 :CPICOR
   CPI=10
   ASCIIFNT = 255
   FNTWTH   = 84
   FNTATR   = 1
   DATA     = ''X.

 :CPICOR
   CPI=12
   ASCIIFNT = 255
   FNTWTH   = 84
   FNTATR   = 1
   DATA     = ''X.

 :CPICOR
   CPI=15
   ASCIIFNT = 255
   FNTWTH   = 84
   FNTATR   = 1
   DATA     = ''X.
ASCII font 255 is a 17 pitch, uniformly spaced Gothic Matrix font.  The size of the font guarantees that the output will fit on the page. 
You could try a removing the :CPICOR tags or change the ASCIIFNT to a more suitable font. The FNTWTH must also be changed; however, leave the other parameters as they are.

Notes:
1. Not all printers support the fonts calculated by the operating system. For instance, the HP LaserJet III printer does not have 20 Characters per Inch (CPI) fonts in fixed or proportional, nor do they support a 13.3 CPI fixed pitch font. On the other hand, the HP LaserJet 4 printer and most newer HP LaserJet printers, as well as HP LaserJet 4 compatible printers, support scalable fonts, which can print characters in varying sizes, such as 13.0 CPI, 13.1 CPI, 13.2 CPI, 13.3 CPI, 13.4 CPI and so on.
2. The source code for system-supplied WSCST objects often do not list a CPICOR tag for CPI=15. In these instances, Host Print Transform (HPT) will use its default action for performing Computer Output Reduction (COR) on 15 CPI spooled files. However, a CPICOR tag for CPI=15 can be added to the source code when 15 CPI spooled files are not printing as expected or as desired.
3. The CPI parameter refers to the current Characters per Inch (CPI) specified in the spooled file before Computer Output Reduction (COR) processing is performed, not the desired CPI after reducing or compressing the font.
4. CPICOR tags are valid only for CPI=10, CPI=12 and CPI=15. Any other entry (such as CPI=5, CPI=13.3, CPI=16.7, CPI=18 or CPI=20) would be ignored.
5.
To print at 10 Characters per Inch (CPI):
ASCIIFNT = 11
     FNTWTH   = 144


To print at 12 CPI:
ASCIIFNT = 85
     FNTWTH   = 120


To print at 13 CPI:
ASCIIFNT = 204
     FNTWTH   = 108


To print at 15 CPI:
ASCIIFNT = 223
     FNTWTH   = 96


To print at 16.7 CPI:
ASCIIFNT = 400
     FNTWTH   = 86
To print at 17 CPI:
ASCIIFNT = 255
     FNTWTH   = 84


To print at 18 CPI:
ASCIIFNT = 252
     FNTWTH   = 80


To print at 20 CPI:
ASCIIFNT = 281
     FNTWTH   = 72
6. Often, spooled files will print the best if 10 CPI spooled files are printed at 13 CPI, 12 CPI spooled files are printed at 15 CPI, and 15 CPI spooled files are printed at 20 CPI. This can be done by using the following CPICOR tags:

:CPICOR
  CPI=10
  ASCIIFNT = 204
  FNTWTH   = 108
  FNTATR   = 1
  DATA     = ''X.

:CPICOR
  CPI=12
  ASCIIFNT = 223
  FNTWTH   = 96
  FNTATR   = 1
  DATA     = ''X.

:CPICOR
  CPI=15
  ASCIIFNT = 281
  FNTWTH   = 72
  FNTATR   = 1
  DATA     = ''X.
7.
If more refinement is required, you can specify an HP PCL 5 font control in the DATA portion of the CPICOR tag. This can be done by using the following CPICOR tags:
NOTE:  The DATA is the hex value for a printer resident font.  If the printer hardware does not contain the font, the font will be substituted at the printer hardware level.

To print using a 13.3 CPI font specify:
:CPICOR
  CPI=15
  ASCIIFNT = 204
  FNTWTH   = 108
  FNTATR   = 1
  DATA     = '1B2873307031332E3368317330623054'X.


To print using a 13 CPI font specify:
:CPICOR
  CPI=15
  ASCIIFNT = 204
  FNTWTH   = 108
  FNTATR   = 1
  DATA     = '1B2873307031332E3068307330623054'X


To print to an HP LaserJet III printer that does not have a 13 CPI font specify:

:CPICOR
  CPI=15
  ASCIIFNT = 204
  FNTWTH   = 108
  FNTATR   = 1
  DATA     = '1B2830551B2873317031302E3076307330623054'X


To print using a 15 CPI font specify:

:CPICOR
  CPI=15
  ASCIIFNT = 230
  FNTWTH   = 96
  FNTATR   = 1
  DATA     = '1B2873307031352E3068307330623054'X


To print using a 16.7 CPI font specify:

:CPICOR
  CPI=15

  ASCIIFNT = 400
  FNTWTH   = 86
  FNTATR   = 1
  DATA     = '1B2873307031362E3768307330623054'X

 
To print using a 18 CPI font specify:

:CPICOR
  CPI=15
  ASCIIFNT = 252

  FNTWTH   = 80
  FNTATR   = 1
  DATA     = '1B2873307031382E3068307330623054'X


To print using a 20 CPI font specify:

:CPICOR
  CPI=15
  ASCIIFNT = 281
  FNTWTH   = 72
  FNTATR   = 1
  DATA     = '1B2873307032302E3068307330623054'X


To print using a 13.3 CPI Courier font at 6 point with medium stroke and upright solid specify:

:CPICOR
  CPI=15
  ASCIIFNT = 204
  FNTWTH   = 108
  FNTATR   = 1
  DATA     = '1B2873307031332E33306836763073306230303354'X.


Refer to document Breakdown of HP PCL5 Font Strings for additional information about specifying a PCL 5 font string in the DATA portion of the CPICOR tag.
Return to Basic Steps for Creating and Using a Workstation Customization Object to create the WSCST object and implement it.

[{"Type":"MASTER","Line of Business":{"code":"LOB08","label":"Cognitive Systems"},"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SWG60","label":"IBM i"},"Platform":[{"code":"PF012","label":"IBM i"}],"Version":"7.4.0"}]

Historical Number

8694253

Document Information

Modified date:
01 October 2020

UID

nas8N1010135