
Proposal for an OS-independent API for FLTK print support under WIN32 or Mac OS X


INSTALLATION INSTRUCTIONS

0) If on Mac OS X, go to step 3).

1) Install patch FlNativePrinter.patch that modifies the win32 FLTK platform so
FLTK's graphics context, fl_gc, accepts printer contexts in addition to
screen contexts (presently FLTK clip functions don't work on printer contexts).

2) Rebuild the win32 libfltk.a

3) Compile the demo program test/curve-print.cxx, the new source file 
src/Fl_Native_Printer_win32.cxx (on WIN32)
or
src/Fl_Native_Printer_mac.mm (on Mac OS X)
and link them with the FLTK libraries.

4) Run the demo curve-print and click on the "Print" button.

5) Browse the Fl_Native_Printer class description 
opening file doc/html/class_fl___native___printer.html