<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">I haven’t used any, but there is one at <a href="http://www.angusj.com/delphi/clipper.php">
http://www.angusj.com/delphi/clipper.php</a> which also lists a bunch of others…<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Leonard<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">Christoph Bartoschek <ponto@pontohonk.de><br>
<b>Reply-To: </b>Scribus List <scribus-dev@lists.scribus.net><br>
<b>Date: </b>Tuesday, March 31, 2020 at 4:53 PM<br>
<b>To: </b>Scribus List <scribus-dev@lists.scribus.net><br>
<b>Subject: </b>[scribus-dev] Path Clipping Library<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Hi, <o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">as you have seen in <a href="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" target="_blank">https://bugs.scribus.net/view.php?id=16073</a> QPainterPath::intersected()
 is buggy. Does Scribus already have or do you know a library that correctly implements clipping?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">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.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I tried to look at some candidates:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">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.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">lib2geom: Cannot find how to set the fill rule for a path.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Christoph<o:p></o:p></p>
</div>
</div>
</div>
</body>
</html>