Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!purdue!haven!decuac!shlump.nac.dec.com!hannah!batcheldern From: batcheldern@hannah.enet.dec.com (Ned Batchelder) Newsgroups: comp.lang.postscript Subject: Re: Reverse video font? Message-ID: <7639@shlump.nac.dec.com> Date: 21 Jan 90 21:37:30 GMT Sender: newsdaemon@shlump.nac.dec.com Organization: Digital Equipment Corporation Lines: 20 In article <1544@scorn.sco.COM>, bobs (Bob Stayton, Yoyodoc) writes... >As promised, here is my routine for creating a reverse >video font. It allows you to create a reverse font in your prolog >from an existing Postscript font, and then use the reverse >font like any other font in your document. Keep in mind that this font will be much slower than other fonts for large amounts of text, since it uses setcharwidth rather than setcachedevice. The font cache is not used at all, so every character must be built fresh. An alternate technique for building a reverse video font is to use charpath to put the character's outline in the current path, then put a rectanlge around it (see other articles on this topic for how to compute the size of this rectangle), and then fill the composite. If you get the directions right, you will end up filling the space between the character and the rectangle. No "1 setgray" is involved, so you can use setcachedevice, and get cached reverse video. Ned Batchelder, Digital Equipment Corp., BatchelderN@Hannah.enet.DEC.com