AIX Printer Tips: Adding Pitch 12 Support to an IBM4208 Printer

Contents

About This Document
The Problem
How To Add the Font Name
How to Add the Font Name: Steps to Make the Change
Examining the colon File
Summary


About This Document

In the AIX Version 4 colon files, the IBM4208 is only supported at a pitch of 10 unless you have fonts to be downloaded in the font directory.

This document describes a way to add the support for a pitch 12 font and also describes how some of the attributes in the colon file interact.

The information in this document applies to AIX Version 4.1.4 and later.


The Problem

Only courier 10 is selectable from SMIT


From SMIT:
                 TYPESTYLE and PITCH          
   Move cursor to desired item and press Enter.

   courier  10   

Nothing Prints

In this file created to print to a file, the file is empty

Message in /var/spool/lpd/pio/@local


How To Add the Font Name


How To Add the Font Name: Steps to Make the Changes

  1. cd /usr/lib/lpd/pio/predef/

  2. cp ibm4208-2.asc /tmp/ibm4208-2.asc
    Save this somewhere you can get it back if it doesn't work.

  3. vi ibm4208-2.asc

  4. find :416:mU:

  5. Add prestige[12] to the attribute so it reads:
    :416:mU::%`"{ print - 'courier[10]prestige[12]'; /usr/bin/ls /usr/lib/lpd/pio/fonts/%Imt/*.*.* 2>/dev/null| /usr/bin/awk -F. '{printf(\\"%%s[%%s]\\n\\",$2,substr($3,1,2));}'; }|sort -u|tr -d '\\012'"

  6. Save the changes

  7. Create a new queue.

Test From the Command Line and From SMIT

  1. qprt -p12 -Pqueue file

  2. smit chpq

  3. Select the print queue

  4. Choose Option 2 Default Print Job Attributes

  5. Move Cursor to TYPESTYLE and PITCH

  6. Hit F4 or the DO Button

  7. Choices should now show:


Examining the colon File

The SMIT entries for pitch and style are combined for most virtual printers at AIX 4. This allows easier selection as important for the older dumb printers that print certain fonts in certain sizes. Newer printers probably do not need this feature, but it's there and will probably remain for some time.

Flag Attributes

First examine the two flag attributes used to set the pitch and the type style.

Conglomerate Attributes

This type of attribute is to combine the input for two flag attributes to a single smit selection. In this case the _s and _p attributes are combined in the Cs attribute. SMIT ENTRY:

Work Attributes


Summary

By changing the mU attribute we changed the list of allowed style and pitch options, but the change must be made to the predef file before building the new virtual printer queue.
Adding Pitch 12 Support to an IBM4208 Printer: AIX Printer Tips:4208font.html ITEM: FAX
Dated: 99/01/29~00:00 Category: zap
This HTML file was generated 99/06/24~12:42:10
Comments or suggestions? Contact us