Operating System - HP-UX
1834883 Members
2735 Online
110071 Solutions
New Discussion

changing default printer font in /etc/lp/interfaces/<printername>

 

changing default printer font in /etc/lp/interfaces/<printername>

Hi,

I want to change the default font to OCR-B on a remote HP printer via /etc/lp/interfaces/
I'm running hpux 11i.
How and where in the file should I do this?
Thanks in advance
4 REPLIES 4
Victor BERRIDGE
Honored Contributor

Re: changing default printer font in /etc/lp/interfaces/<printername>

Hi,
You dont mention if you are talking of true remote or network printer...
In the case of network using Jetdirect, do a man hppi,2 options to change default fonts:
directly on the printer or
use an alias for an lp -o type -o... -d...
where you need to check the fonts list availability in the printer to find the value...

All the best
Victor

Re: changing default printer font in /etc/lp/interfaces/<printername>

Hi Victor,

Sorry, It's a remote printer I'm talking about. There are are these BSDl, BSDk etc.
cases in the /etc/lp/interface/
file. Somewhere I should add an escape code I guess. But where and how?
Victor BERRIDGE
Honored Contributor

Re: changing default printer font in /etc/lp/interfaces/<printername>

Well my friend,
Of what I know:
No -o options will work for the lp command unless the remote print server is another HP-UX box since your box has no idea of what printer it is sending to...

We used to encapsulate sequences and rewrite the lp command for such usage but this was log time ago and I dont remember how it works any more and am looking for clues...
So far:
STRING="${RESET}^[&l26a1e1l70F${DEFAULT_FONT}"
And found RESET="^[E"

8 years have passed since last time I went through this...

Still looking

All the best

Victor BERRIDGE
Honored Contributor

Re: changing default printer font in /etc/lp/interfaces/<printername>

Try to echo the escape sequences or put them in a tempfile then cat the file you want to print>>tempfile, then cat tempfile | lp -d

Does that work?


All the best
Victor