Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!natinst!sequoia!rpp386!woody From: woody@rpp386.cactus.org (Woodrow Baker) Newsgroups: comp.lang.postscript Subject: Re: Reverse video font? Summary: alternatly Message-ID: <17691@rpp386.cactus.org> Date: 18 Jan 90 19:54:03 GMT References: <37700001@osiris.cso.uiuc.edu> <7562@shlump.nac.dec.com> Organization: River Parishes Programming, Plano, TX Lines: 27 In article <7562@shlump.nac.dec.com>, batcheldern@hannah.enet.dec.com writes: > > > I am interested in printing characters in a 'reverse video' format, that > > is white characters on a dark background. I am afraid I may have to > > create my own font to do this, but can find no other way so far. Any > > suggestions would be welcome. > > The other way is to draw a black rectangle, and then show text in white > on top of it. The only problem is figuring out the size and position of > the black rectangle, but you'll have to figure that out if you create > your own font anyway. > > A good height for the rectangle would be the point-size of the text, > although you'll have to do some experimentation to determine the right > place within that height to put the baseline. The width of the rectangle > could simply be the width of the text; if you wanted a little bit of > extra width on the ends, a good first guess might be half the width of a > space on either end. Alternatly, you could do a flattenpath on say the letter 'l', then take the bounding box, and use the resultant coordinates to determine the box. If you don't mind wasting toner, you could do an entire blackfill of the whole page, then set the color to white, and print away..... Cheers Woody >