[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: Postscript PCB lines



The attached script works as expected. Too bad pcb dosn't.

The output from pcb has "setlinecap" but not "setlinejoin".

George

On Tue, 2006-02-28 at 10:20 -0500, DJ Delorie wrote:
> I have identified and "fixed" the line splinters when printing to
> HP4000 LaserJet postscript printers and 45 degree angles. The
> problem was solved by appending round pins to the end points. I
> suspect that there are Postscript options to print line segments
> with rounded ends which could explain the success when using newer
> printers.

Postscript has *always* had the round cap option.  My old ref manual,
published in 1985, has it.  If you have a postscript interpreter that
does not support round end caps, you have a severely broken
interpreter.

Here's a minimal postscript program to use to test if line caps are
printed properly.  If this works, the problem is not in your
interpreter, but in pcb.  If this fails, get a new interpreter.

%!PS-Adobe
1 setlinecap
1 setlinejoin
72 setlinewidth
200 200 moveto 500 500 lineto stroke
showpage