🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #2632

Re: Fonts with opaque backgrounds

#2632
From: John P. McGrath
Date: Thu, 24 Aug 2000 00:00
18 lines
977 bytes
On Thu, 24 Aug 2000 10:01:05 -0400, Hilton Evans wrote:

> Is there a simple way to draw a string
> with an opaque background? That is I want
> the font's outline to paint opaquely over 
> the existing background.

Do you mean opaque?  Or perhaps non-opaque?  I am guessing that you want 
the background to show through everywhere except on the actual letters.  
Including the hole in a "O", right?

Swing does that rather nicely.  In fact, a JLabel is probably exactly 
what you need.

-- 
Regards,

John McGrath
Technical Details
Message-ID: <MPG.140fab7a1dbe361d989b00@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <39a52aa4$1_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,a9e1301e9509b678
X-Google-Attributes: gid1089d0,public
From: John P. McGrath <JPMcGrath@fast.net>
Subject: Re: Fonts with opaque backgrounds
Date: 2000/08/24
Message-ID: <MPG.140fab7a1dbe361d989b00@forums.borland.com>
X-Deja-AN: 662212444
References: <39a52aa4$1_2@dnews>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.api