Skip to main content

[JAVA2D] Font rendering quality

3 replies [Last post]
Anonymous

Let me admit in advance that I haven't search the list archives. I
devoted quite a bit of time to trying, but in the end, I couldn't figure
out how to obtain a LISTSERV password, and the archive webpage was not
kind enough to clue me in, other than to say that I needed one. That
was a lot of fun.

On to my question. Having Java2D render high quality text is very
important to me. Under JDK 1.4.2_04, I'm quite disappointed with the
quality of the fonts. Some render pretty nicely, to be sure, but many
turn out rather ugly when compared to Microsoft Windows XP or Macromedia
Fireworks -- especially at smaller font point sizes.

I did notice, to my surprise, that turning on both ANTIALIAS and
TEXT_ANTIALIAS gives better quality than just TEXT_ANTIALIAS.

Any plans to inrease the quality of anti-aliasing and making it easy to
adjust character spacing? I implementing kerning myself as an
experiment, and found that the results were not breathtaking. However,
manually adjusting the spacing of the characters did make the output
look "nice". Both Windows and Fireworks perform their own manual
"auto-kerning" to achieve similiar effects.

Thanks,

Ben

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
karsten
Offline
Joined: 2003-06-11
Points: 0

> I did notice, to my surprise, that turning on both ANTIALIAS and
> TEXT_ANTIALIAS gives better quality than just TEXT_ANTIALIAS.

Oooh. Could someone from the Java2D team confirm this?
And if so, could you explain the motivation behind it?

Thanks in advance,
Karsten

zander
Offline
Joined: 2003-06-13
Points: 0

Hi Karsten,

I'm not sure I agree with the statement made above.
See for yourself at:
http://java.sun.com/developer/JDCTechTips/2004/tt0518.html#1
And:
http://java.sun.com/developer/JDCTechTips/images/tt051804_aliased.gif

The bottom version has both on, and the text looks no better then the 2nd version to me..

karsten
Offline
Joined: 2003-06-11
Points: 0

Hi Thomas,

The text and image you refer to, repeat my understanding of the situation.
Anyway, is this valid for all platforms and all Windows flavors?
I don't know and would like to hear a confirmation from Sun.

Thanks for help,
Karsten