On Sun, Jun 19, 2011 at 12:11:37AM +0000, corvid wrote:
I wrote:
I wrote:
I put dillo through nm, and I saw a bunch of Fl_Paged_Device, Fl_PostScript_Printer, T Fl_PostScript_File_Device in there.
I didn't pay any attention when they were all enthusiastic about printer support for a while there. Is there a justifiable reason that this gets pulled in, as opposed to an oversight on their part when #ifdef'ing or something?
Turns out there's a
if (Fl_Surface_Device::surface()->class_name() == Fl_Printer::class_id)
in Fl_Text_Display.cxx that pulls it all in. I'll have to ask them whether there's a reasonable way for them to do something about this someday...
In http://fltk.org/newsgroups.php?s23982+gfltk.general+v23991+T0 , Domingo Alvarez Duarte made a suggestion that seems to work fine for me. Patch attached.
Please commit with a comment on its purpose (to avoid linking in unused code). BTW, it'd be great if we could play a bit with printing to check how close/far we are from having the feature. -- Cheers Jorge.-