[scribus-dev] Path Clipping Library

Leonard Rosenthol lrosenth at adobe.com
Tue Mar 31 23:57:19 UTC 2020


I haven’t used any, but there is one at http://www.angusj.com/delphi/clipper.php which also lists a bunch of others…

Leonard

From: Christoph Bartoschek <ponto at pontohonk.de>
Reply-To: Scribus List <scribus-dev at lists.scribus.net>
Date: Tuesday, March 31, 2020 at 4:53 PM
To: Scribus List <scribus-dev at lists.scribus.net>
Subject: [scribus-dev] Path Clipping Library

Hi,

as you have seen in https://bugs.scribus.net/view.php?id=16073<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.scribus.net%2Fview.php%3Fid%3D16073&data=02%7C01%7Clrosenth%40adobe.com%7C775accd781e249a842be08d7d5b59e3a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C637212848347191769&sdata=%2Fo466ikuHNNUXOFraCO80yL5rPqdqdgDha8xSsoackw%3D&reserved=0> QPainterPath::intersected() is buggy. Does Scribus already have or do you know a library that correctly implements clipping?

For PDF import it is necessary that the library can set non-zero winding rule or even-odd rule to each path and then compute the correct output.

I tried to look at some candidates:
Cairo: Not sure but it looks to me as if the fill rule cannot be set independently between the current clip path and the new one.
lib2geom: Cannot find how to set the fill rule for a path.

Christoph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scribus.net/pipermail/scribus-dev/attachments/20200331/7fc53bc3/attachment.htm>


More information about the scribus-dev mailing list