André Bouchet wrote:
> Thank you for the answer, which learned me a lot. I have checked the 
> hack for PDF files. It works. There is surely a similar hack for EPS 
> files.
>
> If somebody is interested I have written another script in PyX to 
> experiment with the 'nonzero winding number'.
>
> André
It seems to work if you alter line  188 of deco.py  --- changing  fill  
to  eofill, the
Postscript operator you mentioned in your first post.

# *******************************************
else:
                # only fill fillpath - for the moment
                if self.fillstyles:
                    file.write("gsave\n")
                    _writestyles(self.fillstyles, context(), registry, bbox)

                file.write("eofill\n")  # "fill" changed to "eofill" for 
an EVEN-ODD fill
                bbox += fillpath.bbox()

                if self.fillstyles:
                    file.write("grestore\n")


# *********************************************

However, these hacks are not the whole story, as there is another branch 
in the code

if self.strokestyles is not None and strokepath is fillpath:
   ....

which I have not altered in either the PDF or Postscript case.



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to