FW: [cairo] EPS target: force boundingbox
Hi all,
I sent a mail to Cairo's maillist about this issue: https://bugs.launchpad.net/inkscape/+bug/380501
Adrian Johnson provided a patch for Cairo that seems to solve our problem. How to proceed?
Thanks, Johan
-----Original Message----- From: Adrian Johnson [mailto:ajohnson@...1679...] Sent: Tuesday, August 03, 2010 06:52 To: Engelen, J.B.C. (Johan) Cc: cairo@...278... Subject: Re: [cairo] EPS target: force boundingbox
On 16/07/10 21:47, J.B.C.Engelen@...1578... wrote:
-----Original Message----- From: Adrian Johnson [mailto:ajohnson@...1679...] Sent: 16 July 2010 14:00 To: Engelen, J.B.C. (Johan) Cc: cairo@...278... Subject: Re: [cairo] EPS target: force boundingbox
Cairo does not provide any means to override the automatically generated BoundingBox comment.
In that case, I want to file a feature request to either disable automatic calculation of boundingbox, or to provide a means to override it. Where should I file our request?
Thanks, Johan
The attached patch allows the cairo generated %%BoundingBox and %%PageBoundingBox comments to be overridden using the cairo_ps_surface_dsc_comment() API.
eg
surface = cairo_ps_surface_create() cairo_ps_surface_dsc_comment(surface, %%BoundingBox: 100 100 200 200"); cairo_ps_dsc_begin_page(surface); cairo_ps_surface_dsc_comment(surface, %%PageBoundingBox: 100 100 200 200");
Please test to see if this meets your requirements.
2010/8/3 <J.B.C.Engelen@...1578...>:
Hi all,
I sent a mail to Cairo's maillist about this issue: https://bugs.launchpad.net/inkscape/+bug/380501
Adrian Johnson provided a patch for Cairo that seems to solve our problem. How to proceed?
Thanks, Johan
It would be best to integrate this patch into Cairo. I think we don't want to fork it :) Regards, Krzysztof
-----Original Message----- From: Krzysztof Kosiński [mailto:tweenk.pl@...400...] Sent: 03 August 2010 18:09
2010/8/3 <J.B.C.Engelen@...1578...>:
Hi all,
I sent a mail to Cairo's maillist about this issue: https://bugs.launchpad.net/inkscape/+bug/380501
Adrian Johnson provided a patch for Cairo that seems to solve our problem. How to proceed?
Thanks, Johan
It would be best to integrate this patch into Cairo. I think we don't want to fork it :)
Yeah, but how up-to-date is our cairo? And... should I write #ifdeffed code that fixes Inkscape's code, to check for Cairo's version?
Cheers, Johan
On Tue, 2010-08-03 at 18:09 +0200, Krzysztof Kosiński wrote:
2010/8/3 <J.B.C.Engelen@...1578...>:
Hi all,
I sent a mail to Cairo's maillist about this issue: https://bugs.launchpad.net/inkscape/+bug/380501
Adrian Johnson provided a patch for Cairo that seems to solve our problem. How to proceed?
Thanks, Johan
It would be best to integrate this patch into Cairo. I think we don't want to fork it :) Regards, Krzysztof
I think what Adrian wants is for somebody from Inkscape to checkout a recent version of Cairo, apply the patch, and then link Inkscape against it to see if the patch does what we want it to do. If it does then he'll push it into the next version of Cairo. I could do this but probably not in the next few weeks.
Tav
On Tue, Aug 3, 2010 at 5:00 AM, <J.B.C.Engelen@...1578...> wrote:
Hi all,
I sent a mail to Cairo's maillist about this issue: https://bugs.launchpad.net/inkscape/+bug/380501
Adrian Johnson provided a patch for Cairo that seems to solve our problem. How to proceed?
Oh, how I remember that bug. Better late than never :)
I agree that we must push it into Cairo somehow.
participants (4)
-
unknown@example.com
-
bulia byak
-
Krzysztof Kosiński
-
Tavmjong Bah