Solved

How do you change the printer font for a Linux Printer?

Posted on 2008-10-24
4
667 Views
Last Modified: 2013-12-15
I have several HP laser printers connected to my system.  We have an accounting application that prints to the printers.  It does not send any control codes to the printer and assumes the printer is configured by default with the correct font / cpi / lpi.  I have finally got it to the correct cpi and lpi but I cannot find a way to change the font.  Can anyone point me in the right direction to accomplish this task.
0
Comment
Question by:kwh3856
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 16

Expert Comment

by:DansDadUK
ID: 22799092
If your application and/or spooler is not sending control sequences to the printer, the implication is that you are changing the default (power-on) PCL print settings on each target printer.

Some LaserJet devices have front panel menus via this this can be accomplished; more modern (IP-connected) ones also allow settings to be changed via either an Embedded Web Server (just point your browser at the printer's IP address) or using a tool such as Web JetAdmin.

You can't do this with the cheap 'host-based' printers (such as CLJ2600, CLJ3600) because they don't understand the traditional Page Description Languages (PDLs) like PCL5, PCL6 and PostScript; they don't even understand plain ASCII.
If you want specific instructions for particular printer model(s), you'll have to indicate what thnose models are, and some-one (not me) may be able to help.

Or am I totally misunderstanding what you are attempting to do?
0
 

Author Comment

by:kwh3856
ID: 22824075
From what I understand about the program now, it does send control codes to the printer.  That is evident by the codes that show up in the top left corner of the page on the first page that is printed.  Evidently, these codes are not getting recognized by the printer.  What I did is manually configure the printer for the correct CPI and LPI which sort of solves my problem.  I was trying to find out how I could install fonts just like you do in Windows for printers.  There is something out there called Xsft but I do not understand how it works.  Do you know anything about Xsft?

Thanks
Kenny
0
 
LVL 16

Accepted Solution

by:
DansDadUK earned 500 total points
ID: 22830478
I have no knowledge of Xsft at all; I don't even know what it is.

If your accounting application IS sending control codes, but these are being ignored by the printer, you really need to find out why; perhaps something between the application and the printer is 'stripping out' the (non-text) escape characters.

This is because it MAY be sending such codes throughout the print request (i.e. not just at the beginning), and (for example) attempting to select one font/size/spacing at the beginning, and another font/size/spacing in the middle of each page - so setting a default font, etc. on the printer will not suffice.

Is there any way that you can 'capture' what the application is generating into a file (preferably using a dummy account)? If so, attach the file to a reply, and analyis will show what control sequences are being included.

As for the "install fonts just like you do in Windows ..." comment: what is usually installed is a TrueType font, which can be used in most Windows applications to display data.
But when it comes to printing the data, the application (usually in conjunction with an appropriate printer driver) either just sends an appropriate font selection sequence (if the driver thinks that the printer has a resident font which matches the TrueType font), or dynamically constructs and downloads an encapsulated equivalent of the TrueType font in a format relevant to the Page Description Language (PDL) being used (usually one of PCL5, PCL6 or PostScript); this is not a trivial process.
0
 

Author Closing Comment

by:kwh3856
ID: 31509695
DansDad,
Thank you very much for your help.  You have been quite helpful.

Thanks
Kenny - Ethan's Dad:)

0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Mysql Crashing Intermittently 16 130
How to make my old USB printer wireless? 71 276
canon pixma mg2922 printer scan 10 93
disable USB on Dell Printers 14 77
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question