Fl_Printer bug?

16 views
Skip to first unread message

pvr...@btinternet.com

unread,
Mar 29, 2024, 10:49:41 AMMar 29
to fltk.general
I have noticed a problem with Fl_Printer in that when printing multiple pages, the printed area gets increasing offset in both the X and Y axes.

I have managed to reproduce it with the simple attached program. Also attached is the PDF file I created using it. It's drawing the same window on each page. As you can see on the subsequent pages it moves down and right.

Phil Rose
FLTK.pdf
test.cpp

pvr...@btinternet.com

unread,
Mar 29, 2024, 10:58:49 AMMar 29
to fltk.general
Forgot. I am running on debian bookworm using default CMake switches (apart from Debug).

Phil.

Manolo

unread,
Mar 30, 2024, 12:25:36 PMMar 30
to fltk.general
Le vendredi 29 mars 2024 à 15:58:49 UTC+1, pvr...@btinternet.com a écrit :
On Friday, March 29, 2024 at 2:49:41 PM UTC pvr...@btinternet.com wrote:
I have noticed a problem with Fl_Printer in that when printing multiple pages, the printed area gets increasing offset in both the X and Y axes.

I have managed to reproduce it with the simple attached program. Also attached is the PDF file I created using it. It's drawing the same window on each page. As you can see on the subsequent pages it moves down and right.

Phil Rose

Yes, there was a bug in the Fl_PostScript_File_Device::begin_page() function under Linux+Pango.
It's now fixed after commit 1bc5680 in the git repo.
Please, report here whether you confirm it's fixed.


pvr...@btinternet.com

unread,
Mar 30, 2024, 4:11:57 PMMar 30
to fltkg...@googlegroups.com
Hi Manolo,


From: fltkg...@googlegroups.com <fltkg...@googlegroups.com> on behalf of Manolo <manol...@gmail.com>
Sent: Saturday, March 30, 2024 4:25 PM
To: fltk.general <fltkg...@googlegroups.com>
Subject: [fltk.general] Re: Fl_Printer bug?
 
I've tested it on my app, and it fixes the problem. Thank you.

Phil.

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/17494bdb-46cd-4c6f-85d7-26ed41408b2cn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages