Solved

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

Posted on 2008-10-24
4
653 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
  • 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Printers have changed substantially in the last 30 or so years, not just in technical capabilities but in cost and usage as well.  Printers were originally used for interfacing with the operator, not necessarily for printing copy or pictures. In …
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…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

911 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now