Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!cs.utexas.edu!uunet!intercon!amanda@intercon.uu.net
From: amanda@intercon.uu.net (Amanda Walker)
Newsgroups: comp.lang.postscript
Subject: Re: setgray within the scope of a BuildChar
Message-ID: <1356@intercon.UUCP>
Date: 11 Aug 89 15:58:55 GMT
References: <2072@optilink.UUCP>
Sender: news@intercon.UUCP
Reply-To: amanda@intercon.uu.net (Amanda Walker)
Organization: InterCon Systems Corporation
Lines: 26

In article <2072@optilink.UUCP>, cramer@optilink.UUCP (Clayton Cramer) writes:
> Unfortunately, to quote the Red Book, "The use of setgray after a 
> setcachedevice operation within the scope of a BuildChar procedure
> is not permitted (an undefined error results)."
> 
> Does anyone have an alternate suggestion?

Two approaches come to mind:

 - make the shape into one path and use "eofill" on it.

 - don't use setcachedevice for that particular character.

I'd try the first one, since that way the character will act like a
"stencil" the way it's supposed to if you do any kind of special
effects.

--
Amanda Walker
InterCon Systems Corporation
--
amanda@intercon.uu.net    |    ...!uunet!intercon!amanda
--
"It can hardly be a coincidence that no language on earth has ever
produced the expression 'As pretty as an airport'"
    --Douglas Adams, _The_Long_