IDEA 5.0 anti aliasing setup

Here are condensed steps on how to setup anti-aliasing for
your editor and the IDEA GUI.

First check IDE Settings->Appearance->Use antialiased font
in editor. Also, you may wish to experiment with editor
font in IDE Settings->Colors&Fonts. I like Bitstream Vera
Sans Mono 14 pt on a 20" LCD.

If you want to see anti-aliased text IDEA's UI,
you add the following ot idea.properties file:

swing.aatext=true

Note that IDEA special gui components like tree, etc. will
still not have anti-aliased text. But the menu and dialog
labels should be anti-aliased for sure.

You may want to experiment with the UI font in IDE Settings-
>Appearance. My default font is too small on a 20" LCD, so
I check the Override default fonts by (not recommended):
and select a larger size. (14 pt).

The above works with all the look and feels that I tried:
Windows, Metal, IDEA (4.5 Default), Alloy.

If you want to play around with Mustang (JDK 6.0 eap) LCD
subpixel antialiasing, then you need to add this line at
the top of idea.bat

SET IDEA_JDK=C:\Program Files\Java\JDK1.6.0\

and add the following to idea.properties:

idea.no.jdk.check=true

I haven't played around with mustang enough to tell what
the different is between jdk 5.0 anti-aliasing.


Reference Articles:

LCD Text: Anti-Aliasing on the Fringe
http://today.java.net/pub/a/today/2005/07/26/lcdtext.html

Phil's Font Fixes
http://weblogs.java.net/blog/chet/archive/2005/06/phils_font_fixe.html#comments



Attachment(s):
idea3459_menu_noaa_1x.gif
idea3459_menu_noaa_4x.gif
idea3459_menu_aatext_1x.gif
idea3459_menu_aatext_4x.gif
9 comments
Comment actions Permalink

Also, I tested the above with Windows XP SP2.
And I have Display Properties->Appearance->Effects->Use the following method to smooth edges of screen fonts set to ClearType.

0
Comment actions Permalink

Hello Alex,

A> If you want to play around with Mustang (JDK 6.0 eap) LCD subpixel
A> antialiasing, then you need to add this line at the top of idea.bat
A>
A> SET IDEA_JDK=C:\Program Files\Java\JDK1.6.0\
A>
A> and add the following to idea.properties:
A>
A> idea.no.jdk.check=true
A>
A> I haven't played around with mustang enough to tell what the
A> different is between jdk 5.0 anti-aliasing.

To get LCD subpixel anti-aliasing in the IDEA text editor, you need Mustang
build 47 or later, IDEA build 3455 (5.0.1 RC2) or later, and ClearType enabled
in the Windows control panel. The configuration steps described above are
also necessary to get IDEA to use the Mustang JDK.

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"


0
Comment actions Permalink

Funny, "swing.aatext=true" doesn't work with Java 1.6 mustang.
The editor is antialiased, but not the menu and other controls of Idea.
Works well with Java 1.5.

BoD


Alex wrote:

Here are condensed steps on how to setup anti-aliasing for
your editor and the IDEA GUI.

0
Comment actions Permalink

I still cannot get how you people can read antialiased text.
My eyes start to hurt in about 5 seconds. Microsoft put a
good deal of work into perfecting Windows fonts, so I am
happy not to use antialiasing.

And while I am at this, Linux fonts (or should I say GNome
fonts?) suck. With antialiasing they suck less, but are
still ugly.

Please JetBrains, don't make antialiased fonts as a default
setting, at least on Windows.

Michael.

"Alex" <no_mail@jetbrains.com> wrote in message
news:14230136.1124611535275.JavaMail.itn@is.intellij.net...

Here are condensed steps on how to setup anti-aliasing for
your editor and the IDEA GUI.

>

First check IDE Settings->Appearance->Use antialiased font
in editor. Also, you may wish to experiment with editor
font in IDE Settings->Colors&Fonts. I like Bitstream Vera
Sans Mono 14 pt on a 20" LCD.

>

If you want to see anti-aliased text IDEA's UI,
you add the following ot idea.properties file:

>

swing.aatext=true

>

Note that IDEA special gui components like tree, etc. will
still not have anti-aliased text. But the menu and dialog
labels should be anti-aliased for sure.

>

You may want to experiment with the UI font in IDE

Settings-

>Appearance. My default font is too small on a 20" LCD, so
I check the Override default fonts by (not recommended):
and select a larger size. (14 pt).

>

The above works with all the look and feels that I tried:
Windows, Metal, IDEA (4.5 Default), Alloy.

>

If you want to play around with Mustang (JDK 6.0 eap) LCD
subpixel antialiasing, then you need to add this line at
the top of idea.bat

>

SET IDEA_JDK=C:\Program Files\Java\JDK1.6.0\

>

and add the following to idea.properties:

>

idea.no.jdk.check=true

>

I haven't played around with mustang enough to tell what
the different is between jdk 5.0 anti-aliasing.

>
>

Reference Articles:

>

LCD Text: Anti-Aliasing on the Fringe
http://today.java.net/pub/a/today/2005/07/26/lcdtext.html

>

Phil's Font Fixes

>
http://weblogs.java.net/blog/chet/archive/2005/06/phils_font_fixe.html#comments
>
>


0
Comment actions Permalink

Michael>> I still cannot get how you people can read antialiased text.
Michael>> My eyes start to hurt in about 5 seconds. Microsoft put a
Michael>> good deal of work into perfecting Windows fonts, so I am
Michael>> happy not to use antialiasing.

I guess it's personal preference, but I prefer the anti-aliased fonts
on windows. This might be because I work on high resolution LCDS (1600x1200
and 1920x1200). I tend to use a larger font (14 or larger) which looks
better anti-aliased than a smaller sizezd font. Also on a higher resolution
display, the pixels are smaller, which gives a crisper font I think..

0
Comment actions Permalink

It works for me on IDEA v5.1

0
Comment actions Permalink

Is there any way to make it work on linux?

I'm trying with IDEA #4155, Mustang b71 and can only get usual antialiasing in editor (not subpixel)

0
Comment actions Permalink

I have probably found an aswer here: http://blogs.sun.com/roller/page/roumen?entry=subpixel_antialiasing_fontrendering_in_editor

+If you're on Gnome, you can enable LCD-aa in Fonts Prerefences.

KDE is not supported (yet).+

And I'm on KDE..

0
Comment actions Permalink

OK, if anyone is interested: I've made a small hack to force subpixel antialiasing. It is an agent library which sets KEY_TEXT_ANTIALIASING and KEY_TEXT_LCD_CONTRAST rendering hints in the default SunToolkit. It enables AA in IDEA's editor, but not in menu/treeview/etc (I guess only BCI can help here)

Usage: -javaagent:aahack.jar=aa=(rgb|bgr|vrgb|vbgr)[,con=xxx] ; where aa sets KEY_TEXT_ANTIALIASING and con sets KEY_TEXT_LCD_CONTRAST

I've put in my idea.vmoptions:
-javaagent:aahack.jar=aa=rgb,con=110



Attachment(s):
aahack.jar
aahack-src.tar.gz
0

Please sign in to leave a comment.