🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #9288

Re: FontMetrics.getStringBounds() gives wrong results when used with a scaled Graphics

#9288
From: William Dodé
Date: Fri, 21 Apr 2000 00:00
18 lines
1419 bytes

Udo Corban wrote:
> 
> Hi,
> I am struggling with finding out the exact lenght of a string when drawing
> to screen.
I've the same problem, i think the solution is to use textLayout
> The only way I found out to make it work is to use the TEXT_ANTIALIASING and
> FRACTIONAL_FONTMETRICS rendering flags with the Graphics, but I don't wan't
> to be forced to do this.
Can you say me how do you use theses flags ?

bye

-- 
William Dod� --- Informaticien Ind�pendant
http://www.chez.com/wilk <mailto:wilk@chez.com>
Technical Details
Message-ID: <3900C808.7AD59171@chez.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <8dmut8$81r64$1@fu-berlin.de>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 111d45,d456f1d38f8b7692
X-Google-Attributes: gid111d45,public
X-Google-Thread: 10fd6d,d456f1d38f8b7692
X-Google-Attributes: gid10fd6d,public
From: William Dodé <wilk@chez.com>
Subject: Re: FontMetrics.getStringBounds() gives wrong results when used with a  scaled Graphics
Date: 2000/04/21
Message-ID: <3900C808.7AD59171@chez.com>
X-Deja-AN: 614405353
Content-Transfer-Encoding: 8bit
References: <8dmut8$81r64$1@fu-berlin.de>
X-Accept-Language: fr,en
Content-Type: text/plain; charset=iso-8859-1
X-Trace: front1.grolier.fr 956433875 19181 194.158.125.12 (22 Apr 2000 20:04:35 GMT)
Organization: Informaticien Indépendant
Mime-Version: 1.0
Reply-To: wilk@chez.com
NNTP-Posting-Date: 22 Apr 2000 20:04:35 GMT
Newsgroups: borland.public.jbuilder.java.swing,comp.lang.java.gui