[squeak-dev] Linux graphics for Windows programmers??
bert at freudenbergs.de
Fri Apr 16 18:39:59 UTC 2010
On 16.04.2010, at 20:20, Schwab,Wilhelm K wrote:
> Hello all,
> Are there any good tutorials that explain the transition from Windows to Linux with respect to graphics (device contexts, etc.)? I am especially interested in frameworks for printing, and wrappers that provide a canvas interface to a printer. I found a copy of Sophie 1.04 that has some code in Sophie-Printing. Is there anything else I should study?
Under Linux, the lingua franca for printing is PostScript. So if you can generate a PostScript file you're almost settled. How to send this to the printer is unfortunately dependent on the environment - you need to make the command configurable, and perhaps make a good guess at a default.
PostscriptCanvas is a place to start, but depending on your app's needs might require some fiddling. OTOH, writing PS files from scratch isn't that hard either.
- Bert -
More information about the Squeak-dev