How to Adjust the Horizontal Motion Index


Contents

About this document
Printers supported
Procedure

About this document

This document describes a technique that will allow you to customize the virtual printer to change the distance per character in the horizontal direction. This is useful in cases when the text will not fit completely on the page and reducing the font size is impractical or a smaller font is not available.

This document applies to AIX Versions 3.2.5 and 4.x.


Printers supported

This should work on all PCL printers.

Horizontal Motion Index (HMI) is a PCL command used to set the horizontal column width in increments of 1/120th of an inch. The command is ESC&k10H. This value is reset each time the font is changed. In the AIX virtual printer subsystem, the symbol set or codepage is sent at the beginning of the data and each time a new codepage is addressed. The command to switch codepages is stored in the attributes that begin with a lowercase letter c, such as c1, c2, and c3, depending on which translation tables are being used.

You must also change the _w parameter to give more width to the page.


Procedure

  1. Modify the virtual printer c1, c2, and c3 attributes as follows (the example is for the HPLJ3 PCL virtual printer):
    • Start the virtual printer. Enter:
         lsvirprt
      
    • Choose the appropriate virtual printer. Select:
         Choose queue
      
    • Start a vi-like session to modify c1. Enter:
         c1~v
      
    The page will look like this:
       Select the Roman-8 symbol set
       c1 = \33(8U
        '\33(8U'
       ~
    
  2. Go to the closing single quote and insert the following:
       \33&k6.4H
    
    The 6.4 can be changed to the desired HMI value.
       Select the Roman-8 symbol set
       c1 = \33(8U
        '\33(8U\33&k6.4H'
       ~
    
  3. Save the changes with the command :wq and then repeat for c2 and c3 or any other values of c# you may have.
       c2=\33(10U\33&k6.4H
       c3=\33(0N\33&k6.4H
    
  4. Press Enter to exit the lsvirprt command and your printer will now print at the new horizontal spacing.




    [ Doc Ref: 91763055516392     Publish Date: Mar. 06, 2001     4FAX Ref: 6484 ]