ITEM: DW6583L
Lineprinter font is different with HP 5Si
ENV:
AIX 4.2.1
7025 F50
HP LaserJet 5si
PROBLEM:
We have a jetdirect connected hplj5si printer. We have a PCL queue
setup with landscape, letter, tray 1, columns 177, lines 66,
Lineprinter 17. It prints in a Courier 17 font not Lineprinter 17.
All other laser printers are HP LaserJet 4Si using the 4si driver
print correctly.
ACTION TAKEN: Customer deleted the hp5si queue, and re-added the
queue as a hplj4si printer, re-set the queue and it still prints
in the wrong font.
When sending a print job to a PCL virtual printer on an HP
LaserJet V the output is in Courrier font, and we want
lineprinter.
smit chpq shows that the queue is setup for lineprinter 17
qprt -P qname /etc/hosts
Output is Courrier 17
qprt -P qname -s lineprinter -p17 /etc/hosts
Output is Courrier 17
qprt -P qname -j! /etc/hosts
Using -j! to not send any initialization (including
font selection) commands to the printer.
Output is Lineprinter 17 - printer front panel is
set with a default font of lineprinter.
vi /usr/lib/lpd/pio/etc/piojetd
Modified script to do:
/usr/lib/lpd/piobe "$@" | tee /tmp/junk | .....piohpnpf...
In the /tmp/junk file we see the correct escape codes to
select lineprinter 17:
\^[(s16.67H \^[(s4096T
Font ID 4096 is the font ID for lineprinter font.
Did this test:
echo "\\033(s16.67H\\033(s4096T this is a test" > /tmp/junk
/usr/lib/lpd/pio/etc/piohpnpf -x Hostname \< /tmp/junk
The output is COURRIER 17!!!!
echo "\\033(s16.67H this is a test" > /tmp/junk
/usr/lib/lpd/pio/etc/piohpnpf -x Hostname \< /tmp/junk
The output is LINEPRINTER 17!!!!
In other words, when no font selection command is sent to
the printer, it uses the front panel default of Lineprinter.
When the escape codes to select Lineprinter is sent, the
printer uses Courrier.
As a workaround, took out the %IeT from the ci attribute so
that all jobs would use the printer's front-panel default
setting of Lineprinter.
HP changed the font identifier for lineprinter font between
the LaserJet IV and LaserJet V - font ID 4096 used to be
Lineprinter and Courrier was 4099. On the newer printers,
0 is lineprinter and 4096 and 4099 are both Courrier.
Modified the predef colon file
/usr/lib/lpd/pio/predef/hplj-5si.pcl
Altered the mU attribute to reflect a font ID of 0 instead of
4096
BEFORE:
:416:mU::courier[10,4099;0;0(%ImB)]courier-bold[10,4099;3;0(%ImB)]courier-italic[10,409
9;0;1(%ImB)]courier[12,4099;0;0(%ImB)]courier-bold[12,4099;3;0(%ImB)]courier-italic[12,
4099;0;1(%ImB)]lineprinter[17,4096;0;0(%ImB)]courier[17,4099;0;0(%ImB)]
AFTER:
:416:mU::courier[10,4099;0;0(%ImB)]courier-bold[10,4099;3;0(%ImB)]courier-italic[10,409
9;0;1(%ImB)]courier[12,4099;0;0(%ImB)]courier-bold[12,4099;3;0(%ImB)]courier-italic[12,
4099;0;1(%ImB)]lineprinter[17,0;0;0(%ImB)]courier[17,4099;0;0(%ImB)]
This resolved the problem of "lineprinter" generating Courrier output
instead of Lineprinter.
HR
CENTER
FONT size=2Support Line: Lineprinter font is different with HP 5Si ITEM: DW6583L
BRDated: October 1997 Category: N/A
BRThis HTML file was generated 99/06/24~13:30:15
BRComments or suggestions?
A href="../../../../feedback.htm"BContact us/B/ABR
/FONT
/CENTER
/BODY
/HTML