I am trying to improve the horrible looking font rendering of Swing text components under JDK 1.2.2 by turning on anti-aliasing.  I've been somewhat successful in getting all the components in a frame to anti-alias by overriding the frame's paintComponent and setting appropriate RenderingHints.  Unfortunately, although text looks MUCH better, labels don't align like before and bold font text is clipped on the right (some letters hidden).
 
Has anyone successfully used anti-aliasing for text in Swing?  I've been hunting everywhere to find an example or ideas on how to improve font rendering in Java2 Swing programs.  Seems there should be some API or startup parameter to improve font quality globally.
 
I'm totally amazed at the seemingly casual acceptance of poor font display by Sun.
 
Any help would be greatly appreciated!!!
 
-Ron
 

Reply via email to