PostscriptCanvas and older printers
Marcel Weiher
marcel at metaobject.com
Sun Oct 24 16:50:24 UTC 1999
The Postscript code emitted by the PostscriptCanvas is Postscript
Level 2 compatible. There are some aspects that need to make use of
Level 2 features to work at all (and more that actually scream for
Level 3) so I saw no particular point in making sure that the rest is
Level 1 compatible, since Level 2 is much nicer to code for.
That being said, I can add some emulations for those parts that can
be easily emulated, like the ones you mention. However, you should
be aware that other features will *not* be emulated, so it is only
going to be a partial solution.
Regards,
Marcel
> From: Bob Arning <arning at charm.net>
>
> 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?
More information about the Squeak-dev
mailing list
|