Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!ogicse!decwrl!crltrx!jg From: jg@crltrx.crl.dec.com (Jim Gettys) Newsgroups: comp.windows.x Subject: Re: Polygon filling and scalable fonts Keywords: Filling , FOnts Message-ID: <5246@crltrx.crl.dec.com> Date: 8 May 90 14:29:44 GMT References: <1184@digiw.UUCP> Organization: DEC Cambridge Research Lab Lines: 24 In article <1184@digiw.UUCP> petri@digiw.UUCP (Petri Alhola) writes: > If i like to draw O character, it is descripted with two separate > paths or outlines, one outside and one inside. These two are non connected > to each other. In postscript i can use two separate paths and then > fill operator. If i like to use XFillPolygon it does not allow giving > two separate outlines to it. Of course i can do it by drawing inside > path with background color fill, but i like that items drawn back > are still visible from hole like in postscript. > You can do what you want with a single FillPoly call; once you've traced the outer edge, move to the inner edge and close the form. With the appropriate winding rule, the hole (inside of the O in your case) will not be touched. Jim Gettys Digital Equipment Corporation Cambridge Research Laboratory Cambridge, Ma. -- Digital Equipment Corporation Cambridge Research Laboratory