Hi all:

Just a quick note to document a fix I've made to magicfilter script
"gdi-filter"; turns out that it has a problem printing text correctly.
Since I don't know foo about GDI, and there aren't any resources on it
that I can find on the web, I just pipe any text through a2ps and it
prints OK as postscript.

Here's the tail end of my new gdi-filter:

 # Default entry -- for normal (text) files. MUST BE LAST.
 # NOTE: the "cat" command does not work with GDI printers.  My solution is
 # to pipe the file data through a2ps, then print the postscript output.
 # default cat \eE\e&k2G\e(0N  \eE
 default pipe a2ps -1 -o -

Of course, if anyone has a better solution, I'm willing to listen.

Thanks,
J

Keywords: magicfilter, filter, GDI, gdi-filter, \eE\e&k2G\e(0N,
 text, Samsung-ML1210, linux, lprng


_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list