Ron,

> 
> I'm still at standstill.  How can we get anti-alias text to render properly
> with Swing?  Ignoring it won't make the issue go away as it will continue to
> surface as more platforms and programs use anti-alias fonts.  Who at Sun can
> take this ball and run with it?

When you turn on hints such as A-A you obviously are expecting a rendering
difference. Whatever lays out the UI has to be aware of that too and take it
into account.
Swing, for the reason Vincent pointed out, calls "stringWidth()" rather
than "getStringBounds()".
Swing will tell you that they have tried to stay mostly within the bounds of
what is possible with 1.1.x. As this changes, and they start to take advantage
of Java 2 features such as AA text, this is an area they will need to address.
Until then, if you are running into this problem when using A-A, then you will
need to do something like what Vincent suggested, but I can't say that
won't mean getting fairly deep into Swing's plumbing.

-Phil.

=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 2D Home Page: http://java.sun.com/products/java-media/2D/

Reply via email to