Re: need help regarding text printing on linux
- From: Unruh <unruh-spam@xxxxxxxxxxxxxx>
- Date: 19 Sep 2005 21:33:42 GMT
"shailendra.rathaur@xxxxxxxxx" <shailendra.rathaur@xxxxxxxxx> writes:
>hey group,
>We need your help regarding the text printing on Linux system.
>We are developing thermal printer driver on Linux platform. For this we
>have to support all commands related to printer.
The easiest thing as far as coupling to Linux is to make your printer
either understand postscript, or understand PCL. There are loads of drivers
already written which support those two languages.
If you have to write your own, then the next best thing is to write a
postscript to your printer language translator withing ghostscript. Ie,
ghostscript defines a driver interface language which tells you how to
couple the output of ghostview to the printer. There are loads of examples
in ghostscript of how to do that-- ie examples of printer drivers, from
totally stupid printers (Ie you tell it dot by dot what to print) to
sophisticated. Find one that is near your printer's capability and steal
from it. (that is what the GPL is all about. You ARE allowed to use other's
work to do your own work. The only requirement is that you also allow
others to do so.)
>These commands include text related commands (bold, double height,
>double width, underline etc), barcode related commands and graphics
>commands.
These are all handled by ghostscript . Use what others have done. No point
in reinventing the wheel.
>Also, there are printer fonts for the text which will be selected by
>the
>user.
>We need help for:
>1. Text commands support and printing
>To send commands for changing height,changing width, old, italics and
>other text parameters.
>2. Font creation and usage (Font control type also)
>* To create fonts and to send specific commands when the text is in
>"created printer fonts".
>* "FontControl type" font selection for particular characters are taken
>as commands not the text to be printed.
>eg.Suppose we write a character 'g' in text pad with FontControl type
>of
>font than in that case Cut receipt command is sent to the printer.
>How to interpret the text in font control is one of the further issue.
Leave it to ghostscript. It is very good at that.
>(Through rastering the text is being printed as seen with all the
>correct parameters (width, height etc.). Overall, "rastering" is
>working
>fine for any type of data ; text, image, doc etc.)
Again, you have to take the output that ghostscript delivers to the printer
driver, and impliment those features. That is all.
>Following are the queries related:
>1. What solution do you suggest for this?
>2. How can we directly print text to the printer (without using CUPS
>printing system) with all the supported commands as well as Font
>selected?
Why would you want to?
>3. Can we put this facility to directly read text not raster data
>(bypassing the CUPS system) in the filter (rasterto*)?
>3. How can we create fonts on linux so that any text based application
>can select the available font (fontcontrol type font also) and send
>command to print the text to the printer?
>thanx
>shail
.
- Follow-Ups:
- Re: need help regarding text printing on linux
- From: Roger Leigh
- Re: need help regarding text printing on linux
- References:
- need help regarding text printing on linux
- From: shailendra.rathaur@xxxxxxxxx
- need help regarding text printing on linux
- Prev by Date: Re: No net connectivity?
- Next by Date: Re: need help regarding text printing on linux
- Previous by thread: Re: need help regarding text printing on linux
- Next by thread: Re: need help regarding text printing on linux
- Index(es):
Relevant Pages
|