Windows XP ClearType support for Aurora

Windows XP ClearType antialiased fonts are much cleaner than their standard
antialiased fonts. I wonder if there is any way to support them. It works in
all AWT controls since AWT are native ones. For Swing however one have to
set font hints to do antialiasing and I could not find any way to
differentiate between ClearType and regular antialiasing. I was playing with
it a bit and can turn antialiasing on and off but do not know how to make it
ClearType.
I tried AWT TextField (ClearType) side by side with regular antialiased
font - it is noticeably better. Any ideas if it can be enabled


4 comments
Comment actions Permalink

By the way, does anyone know if there is a way to tell swing to antialias a
whole components hierarchy??? I mean, overloading the paint method on the
root component of the hierarchy does not work, for instance if there is a
combobox within the hierarchy, the popup list gets drawn aliased...
Guillaume

Jonas Kvarnström wrote:

Alex Roytman wrote:

>> I tried AWT TextField (ClearType) side by side with regular antialiased
>> font - it is noticeably better. Any ideas if it can be enabled


Java 2D has its own font renderer instead of using the one provided by
the operating system, so in order to enable ClearType you unfortunately
need to get ClearType implemented in Java 2D.


0
Comment actions Permalink

Alex Roytman wrote:

I tried AWT TextField (ClearType) side by side with regular antialiased
font - it is noticeably better. Any ideas if it can be enabled


Java 2D has its own font renderer instead of using the one provided by
the operating system, so in order to enable ClearType you unfortunately
need to get ClearType implemented in Java 2D.

0
Comment actions Permalink

Alex Roytman wrote:

Windows XP ClearType antialiased fonts are much cleaner than their standard
antialiased fonts. I wonder if there is any way to support them. It works in
all AWT controls since AWT are native ones. For Swing however one have to
set font hints to do antialiasing and I could not find any way to
differentiate between ClearType and regular antialiasing. I was playing with
it a bit and can turn antialiasing on and off but do not know how to make it
ClearType.
I tried AWT TextField (ClearType) side by side with regular antialiased
font - it is noticeably better. Any ideas if it can be enabled


I'm afraid that we cannot support ClearType until SUN implement
ClearType support in Java2D.

Best regards,
Vladimir Kondratyev
_____________________
JetBrains

0
Comment actions Permalink

For the record, it's not all that hard to do yourself. Maybe someone could hack together a Metal extension implementing it or something. It seems that IDEA is always ahead of the times with the UI (along with lots of other things :) (with things like the mousewheel library for pre-1.4 classpaths, the Windows XP transparency DLL). Maybe it could pioneer ClearType. :) Anyway, see http://developer.java.sun.com/developer/bugParade/bugs/4726365.html for details.

0

Please sign in to leave a comment.