PostscriptCanvas and older printers

Bob Arning arning at charm.net
Sat Oct 23 15:42:09 UTC 1999


I've been experimenting with PostscriptCanvas and found that it had several problems with older (very old!) PostScript printers. Some are easily fixed (for my printer, anyway), but others may be tougher. I'd welcome any thoughts as to compatibility with different PostScript versions.

1. I seem to require a "newpath" before the "moveto" when drawing rectangles. That was easy to fix, but would the addition cause problems elsewhere?

2. "selectfont" does not seem to be supported on my printer, so lines like

/Helvetica [ 10.8 0 0 -10.8 0 10.0] selectfont

cause problems. I fixed this by changing the emitted PostScript to:

/Helvetica findfont [ 10.8 0 0 -10.8 0 10.0] makefont setfont

Is there a reason not to use the second version?

3. "<<" does not seem to be recognized by my printer. This is used in 
	3a) getSymbolcharproc and 
	3b) in the writing of bitmapped images. 
Does anyone know a backward-compatible way of doing the same thing?

Cheers,
Bob





More information about the Squeak-dev mailing list