On 28/10/08 15:08, Helder Magalhães wrote:
I'm not sure if that (Squiggle's menu buttons using subpixel
rendering) proves it. AFAIK, Java is able to use the native operating
system widgets so, although you may have sub-pixel rendering enabled
at the operating system level, your Java settings may (potentially)
not be configured to take advantage of it.

I don't think that squiggle uses native operating system widgets. The following tests show that the awt.useSystemAAFontSettings property can be used to turn anti-aliasing off for widgets. That a java property changes the appearance of the widgets makes me think that they are not system widgets.

When I run

/opt/jdk1.6.0_10/bin/java -Dawt.useSystemAAFontSettings=false -cp batik.jar -jar batik-squiggle.jar /tmp/samples/subpixel.svg

the text in the menus is drawn without any anti-aliasing at all. The text in the SVG file is drawn with gray-scale anti-aliasing.

When I run

/opt/jdk1.6.0_10/bin/java -Dawt.useSystemAAFontSettings=lcd -cp batik.jar -jar batik-squiggle.jar /tmp/samples/subpixel.svg

the text in the menus is drawn with subpixel rendering. The text in the SVG file is still drawn with gray-scale anti-aliasing.

So awt.useSystemAAFontSettings can be used to change the rendering of widgets but not Batik's text rendering. Batik appears to override the default java settings. Does anyone know where this happens?

I found awt.useSystemAAFontSettings in http://java.sun.com/products/java-media/2D/reference/faqs/

thanks
Stuart

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to