> Depending on the order in which I
> instantiate Swing components
This should only depend on the look-and-feel. This functionality is available
under Metal (and all its derivatives), GTK and Windows look-and-feels.
Third-party LAFs that extend Basic do not have this functionality built in
unless they do some (completely unnecessary - see below) coding.
>
> 1. It's sufficient to get anti-aliased text to put
> [code]
> Toolkit.getDefaultToolkit().getDesktopProperty("awt.fon
> t.desktophints");
> [/code]
> before any other code. It's also sufficient to
> instantiate a JFrame before setting the Windows look
> and feel.
Post a complete (<100 lines) test app that illustrates your issue.
> 2. When the anti-aliased text is shown correctly,
> the system's UIDefaults contains an
> AATextInfoPropertyKey entry. When it's not shown, it
> doesn't.
I have addressed this issue before [1]. I had a quite unproductive discussion
on the "free rides" that Metal, Windows and GTK look-and-feels get by their
"virtue" of being core look-and-feels as far as the desktop AA settings go. You
can see the discussion at [2] and the RFE that i filed at [3]. This discussion
has not led to where i hoped it would (where the third-party look-and-feels
extending Basic would get the same functionality as the third-party
look-and-feels extending Metal). So i had to resort to injecting the hint
installation myself.
In my opinion, the whole thing about exposing API to set the text rasterization
hints is unnecessary. Java2D should use the native rasterizer on *all*
platforms for all text rasterization APIs. This is partially done in 6u10 on
Windows when the awt.font.desktophints property is used as mentioned in the
original links. Hopefully, JDK 7 will remove the bundled rasterizer(s),
deprecate the existing rendering hints (in addition to the desktop property)
and make them no-ops and start using native text rasterization exclusively
based on the current settings of the user desktop environment.
Kirill
[1] http://forums.java.net/jive/thread.jspa?threadID=46948
[2] http://www.javalobby.org/java/forums/t87243.html?start=0
[3] http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6506298
[Message sent by forum member 'kirillcool' (kirillcool)]
http://forums.java.net/jive/thread.jspa?messageID=317118
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".