See, the thing is you keep on writing sub-pixel aliasing, but as far as I'm 
aware there are two implementations for that: JDK-based and native-based 
(ClearType) so it isn't immediately clear to me which one LCD_* refers to.

If you look at the comment section of Chet's blog you will find this:

[code]from the soon to be posted updated 2D FAQ :

Q. How can I specify the text antialiasing/font smoothing settings to be used 
by Swing in applications on Java SE 6?

A. This is generally is a question from users of KDE or Windows 2000 who would 
like to use LCD subpixel text. There's no programmatic way to do it in Java SE 
6 (However if you know what you want you can set a system property :

java -Dawt.useSystemAAFontSettings=lcd
which request to use LCD subpixel text in the most common subpixel 
configuration There are a few more useful values for this property as follows :

"false" corresponds to disabling font smoothing on the desktop.
""on" corresponds to Gnome Best shapes/Best contrast (no equivalent Windows 
desktop setting)
""gasp" corresponds to Windows "Standard" font smoothing (no equivalent Gnome 
desktop setting)
""lcd" corresponds to Gnome's "subpixel smoothing" and Windows 
"ClearType"[/code]

but then when you look at 
http://java.sun.com/javase/6/docs/technotes/guides/2d/flags.html#aaFonts it 
simply does not say that. The former seems to imply that LCD_* maps to native 
renderings and ON maps to JDK-rendering.

Personally I find this very counter-intuitive. I expect the following:

KEY_TEXT_ANTI_ALIASING:

OFF: Anti-aliasing is off
ON: Anti-aliasing is on, using whatever algorithm is preferred by the desktop
DEFAULT: Anti-aliasing is on for JDK 1.6, off for 1.5
LCD_*: Anti-aliasing is on using a specific algorithm (used mainly for testing, 
I don't see normal applications needing to pick a specific algorithm)

then you'd have a separate key:

KEY_TEXT_ANTI_ALIASING_IMPLEMENTATION (again mostly for testing purposes):

JDK: Rendered by JDK, if available
OS: Rendered by OS, if available
DEFAULT: Whatever is preferred on the current JDK version
[Message sent by forum member 'cowwoc' (cowwoc)]

http://forums.java.net/jive/thread.jspa?messageID=297462

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to