- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Set printer font size in 17 cpi
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2009 02:59 PM
тАО03-02-2009 02:59 PM
Set printer font size in 17 cpi
I have tried "lp -ofp17 -dprinter_name hosts" and it worked fine, how ever I need to set this conf by default. I think it could be possible editing /etc/lp/interfacers/model.orig/model_printer_script
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2009 07:56 PM
тАО03-03-2009 07:56 PM
Re: Set printer font size in 17 cpi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-06-2009 12:08 PM
тАО03-06-2009 12:08 PM
Re: Set printer font size in 17 cpi
I used PCL# script I modified line
pitch="def" by
pitch=17
I could fix as default 17 cpi.
I do not know how to modify the script of P4014 printer its code is more complex.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-08-2009 04:39 PM
тАО03-08-2009 04:39 PM
Re: Set printer font size in 17 cpi
pitch="def"
to
pitch=17
should work. This is where the code in the script changes the pitch:
case "$pitch" in
def);;
c) echo "\033(s16.66H\c";;
e) echo "\033(s9H\c";;
*) echo "\033(s${pitch}H\c";;
esac
What this code does is to insert an escape sequence to change the pitch. When you use -ofp17, the code: ESC(s17H is inserted in front of the print job. When $pitch is not "def", the new value is inserted into the job.
The model.orig directory with the name of the print_queue is the correct file to change. Don't change the template directory /usr/lib/lp/model as you may need the original sometime in the future.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-08-2009 09:50 PM
тАО03-08-2009 09:50 PM
Re: Set printer font size in 17 cpi
Check your printer manual, I think you can set this 17 CPI from your printer end also.
Suraj