🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #1551

Re: Reverse video font?

#1551
From: batcheldern
Date: Thu, 18 Jan 1990 14:46
19 lines
1470 bytes
> 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.

Ned Batchelder, Digital Equipment Corp., BatchelderN@Hannah.enet.DEC.com
Technical Details
Message-ID: <7562@shlump.nac.dec.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!purdue!haven!decuac!shlump.nac.dec.com!hannah.enet.dec.com!batcheldern
References: <37700001@osiris.cso.uiuc.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!purdue!haven!decuac!shlump.nac.dec.com!hannah.enet.dec.com!batcheldern
From: batcheldern@hannah.enet.dec.com
Newsgroups: comp.lang.postscript
Subject: Re: Reverse video font?
Message-ID: <7562@shlump.nac.dec.com>
Date: 18 Jan 90 14:46:18 GMT
References: <37700001@osiris.cso.uiuc.edu>
Sender: newsdaemon@shlump.nac.dec.com
Reply-To: BatchelderN@hannah.enet.dec.com
Organization: Digital Equipment Corporation
Lines: 19