Skip to Content.
Sympa Menu

baslinux - Re: [BL] text to ps

baslinux AT lists.ibiblio.org

Subject: Baslinux mailing list

List archive

Chronological Thread  
  • From: baslinux AT lists.ibiblio.org
  • To: baslinux AT lists.ibiblio.org
  • Subject: Re: [BL] text to ps
  • Date: Tue, 1 May 2007 16:27:02 +0000 (UTC)


Unfortunately the netpbm library was set up to use BDF fonts from X but X
no longer uses them, it uses pcf. I found a 1996 package of four BDF
fonts in 14 and 16 point sizes, but I need 150 300 and 600 dpi fonts.



Sindi

I posted http://keesan.freeshell.org/bl/bdffonts.tgz

Contains 8 fonts of various sizes from two sources (there are more from xfree86.org) that can be used at 150 or 300 dpi with clever planning to fill an 8.5" to 13" wide page. 6x8 fonts are 6.4 pixels wide per character including white spaces. 8.5x150 / 6.4 is about 200 columns of print about 20 cpi. The 12x24 font will print nicer, at 300 dpi, same size characters, or larger at 150 cpi (10 cpi). 13" paper should allow printing of 50% more columns. If you want 600 dpi you will need to create your own font via ps or X (see pbmtext.html).

Convert the text to pbm, then print that directly to a printer.

pbmtext -font 12x24.bdf < text.txt > text.pbm

pbmtolj -resolution 300 text.pbm > /dev/lp0 (75 dpi default)
pnmtolj - for a color HP printer
Deskjet uses lj driver.

pbmtoepson -dpi=240 (max for this driver) text.pbm > /dev/lp0
For older Epson inkjet (maybe also Epson and Panasonic dot-matrix)
In DOS I can print at 360 dpi.

pnm2ppa (600 dpi is default) - not a netpbm program but I posted it for use with HP 720 822 1000 ppa printers.

Sindi




Archive powered by MHonArc 2.6.24.

Top of Page