Skip to main content

Java 2D to support LCD optimized anti-aliased text

8 replies [Last post]
fuerte
Offline
Joined: 2004-11-22

I am waiting for

RFE: Java 2D to support LCD optimized anti-aliased text (sub-pixel resolution)
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4726365

which is currently being worked on

"We are working on this for the mustang release. A very small amount of
new API will be involved but we expect Swing's Windows L&F and GTK L&F's
to pick it up automatically so apps using those won't need to do anything
so long as their desktop is configured to use it too (ie Swing will honour
the desktop setting). Apps will also be able to explicitly request
it for text drawing on a Graphics2D by setting a simple RenderingHint.
xxxxx@xxxxx 2005-1-26 20:55:04 GMT"

Any idea when this will be available? NetBeans seems quite ugly now that I have LCD (as do all other applications that do not use truetype).

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
uncle_alice
Offline
Joined: 2003-06-16

It would help a lot if Swing would just use fonts that are compatible with LCD screens. I also recently switched to an LCD monitor, and all my Java apps suddenly looked awful! The "dialog" font (Arial on my WinXP machine using the new Metal L&F) is possibly the worst font there is for LCDs. Just about anything else would be better, but I find the Bitstream Vera fonts work especially well. And with anti-aliasing turned on (via the "swing.aatext" property), my apps look quite nice again, even without subpixel AA.

fuerte
Offline
Joined: 2004-11-22

Do you know how to enable anti-aliasing in NetBeans?

uncle_alice
Offline
Joined: 2003-06-16

No, sorry, I don't use NetBeans.

denisw
Offline
Joined: 2005-01-03

You call NetBeans with the command-line option -J-Dswing.aatext=true

fuerte
Offline
Joined: 2004-11-22

Seems to work in menus and other places where proportional font is used, but not in the code window. Changing Monospaced font to Bitstream Vera Sans Mono made the code look better as well (but I don't think that it is anti-aliased).

vtec
Offline
Joined: 2003-09-05

Tools in main menu--> Options --> Editor Settins --> Text Antialiasing

linuxhippy
Offline
Joined: 2004-01-07

when its ready?

fuerte
Offline
Joined: 2004-11-22

I was hoping that sooner than that, and downloaded the Mustang binary already. Can't wait a year.