I finally got too tired of the extremely ugly font rendering done by the
Sun JDK 1.3 on Linux (for those of you who are running on Windows, the
lack of proper truetype hinting in the Sun JDK on Linux makes the fonts
extremely blocky and ugly).
I thought it might be possible to turn on font anti-aliasing in IDEA,
but there's no such option in the menus, so I extracted JComponent.java
from the JDK's src.jar and modified paint() by adding the following
lines at the top:
((Graphics2D)g).setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,
RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
Then I compiled the file and placed the result in
/devel/view/javax/swing/JComponent.class.
Finally, I modified idea.sh so that the new JComponent implementation is
before the built-in one in the boot class path:
exec ${JAVA_HOME}/bin/java
-Xbootclasspath/p:/devel/view:${BOOT_CLASS_PATH} ...
Now the fonts in IDEA are anti-aliased and my eyes aren't hurting
anymore. So far I haven't discovered any bad effects, except that font
size calculations seem to be just a tiny bit off, causing some entries
in tree views to end in "..." because the allocated space is just a tiny
bit too small.
Just thought I'd share the tip with you in case any of you are having
the same problem (I remember some people complaining about Linux fonts
about a month ago).
_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list