Vincent,
Thanks, but your answer doesn't help me. Why do I (or anyone else wanting
to improve font rendering) have to do a hack-around? Why isn't Sun
addressing the problem more directly? Also, I have no idea what you are
talking about or how to do whatever it is you want me to do.
-Ron
> -----Original Message-----
> From: Vincent J Hardy [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 03, 1999 10:37 AM
> To: Ron Yust
> Subject: Re: [java2d] Anti-aliasing Swing text
>
>
> Ron,
>
> The reason for the behavior you are seeing is that the font metrics
> calculation in the ComponentUI implementations does not take the
> antialiased rendering into account, causing the behavior you describe.
> The reason is that swing is used both in 1.1 and 1.2 and it uses the 1.1
> font metrics support (and there was no antialiasing).
> You can implement a custom ComponentUI (e.g. for labels) that fixes this
> problem by using the 1.2 text features.
> I hope this helps.
>
> Regards.
> V.
>
> Ron Yust wrote:
>
> > Part 1.1 Type: Plain Text (text/plain)
> > Encoding: 7bit
>
> --
> +-----------------------------------------------------------+
> | Vincent Hardy [EMAIL PROTECTED] |
> | Java Architect Java Solution Center |
> | 650-470-2063 Menlo Park |
> +-----------------------------------------------------------+
>
>
>
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 2D Home Page: http://java.sun.com/products/java-media/2D/