Description of problem: After updating to F12, Java apps that do not use SWT but SWING/AWT have no font AA which looks very bad. When setting _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on' The apps look as expected (examples are netbeans, or apps that we don't ship like geogebra). Please (re)enable this by default. Version-Release number of selected component (if applicable): java-1.6.0-openjdk-1.6.0.0-33.b16.fc12.x86_64 How reproducible: Always Steps to Reproduce: 1. start a swing/awt using app with the GTK theme 2. notice ugly fonts 3. do the same with _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on', fonts look as expected. Actual results: Aliased fonts Expected results: Anti aliased fonts
I just added an alias to my .bashrc with java -Dawt.useSystemAAFontSettings=on
David, thanks for the above method, however I found that it only works from a terminal window, so I did a bit of research and this is what I found: 1. Found similar bug on Sun website: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6418032 2. Points to article: "How can I specify the text antialiasing/font smoothing settings to be used by Swing in applications on Java SE 6?" http://java.sun.com/products/java-media/2D/reference/faqs/index.html#Q_How_can_I_specify_the_text_ant 3. This suggests using: java -Dawt.useSystemAAFontSettings=lcd 4. Also confirmed that adding following to $HOME/.bashrc works, but again, only from a terminal window: export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=lcd' 5. Checked following page for how to add this as a Netbeans startup parameter (uses -J apparently): http://wiki.netbeans.org/FaqStartupParameters 6. Checked following page for how to add this to the netbeans.conf startup file: http://wiki.netbeans.org/FaqNetbeansConf 7. Found netbeans.conf: locate netbeans.conf /usr/share/netbeans/6.7.1/etc/netbeans.conf To startup netbeans from terminal / shortcut you can do: netbeans -J-Dawt.useSystemAAFontSettings=lcd ...or netbeans -J-Dawt.useSystemAAFontSettings=on of course ;) To add this option to netbeans.conf, find the line: netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=200m -J-Xverify:none -J-Dapple.laf.useScreenMenuBar=true -J-Dsun.java2d.noddraw=true" ...and simply add the startup parameter to the end of the line (within the existing quotations), e.g. netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=200m -J-Xverify:none -J-Dapple.laf.useScreenMenuBar=true -J-Dsun.java2d.noddraw=true -J-Dawt.useSystemAAFontSettings=lcd" As an alternative, the following seems to work to add the startup parameter for all java applications, but I'm not sure if it's a good idea or not (someone with more knowledge please comment): su -c "echo export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=lcd' > /etc/profile.d/java-font-smoothing.sh" This creates a script in the /etc/profile.d/ folder that should run on next login. What comments do people have as regards how this could be implemented in future builds? Is there a better approach to ensuring the java fonts are rendered than the methods already discussed?
Hi Rob many thanks for replying. I too after some investigation found that you can add various settings to netbeans to solve the issue. The alias seems to work well at this stage for me as a lot of the applications i use are launched from the cli, even those from the menu. But we need to find a way of doing this as I would rather not have to add this option to some of the startup scripts I use for my applications based on the nebeans platform. I would have thought a system variable would work quite well.
Possible duplicate of Bug 539293
This seems to be fixed in java-1.6.0-openjdk-1.6.0.0-34.b17.fc12.x86_64
java-1.6.0-openjdk-1.6.0.0-33.b17.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/java-1.6.0-openjdk-1.6.0.0-33.b17.fc11
java-1.6.0-openjdk-1.6.0.0-36.b17.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/java-1.6.0-openjdk-1.6.0.0-36.b17.fc12
java-1.6.0-openjdk-1.6.0.0-35.b17.fc13 has been submitted as an update for Fedora 13. http://admin.fedoraproject.org/updates/java-1.6.0-openjdk-1.6.0.0-35.b17.fc13
java-1.6.0-openjdk-1.6.0.0-33.b17.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report.
java-1.6.0-openjdk-1.6.0.0-36.b17.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report.
java-1.6.0-openjdk-1.6.0.0-35.b17.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report.
*** Bug 539293 has been marked as a duplicate of this bug. ***
Re-assigning to dev side to look into it.
Like the reported said on comment 5, this bug is fixed. It was reverified on Fedora 11 i386 + x86_64 Fedora 12 i386 + x86_64 Fedora 13 i386 + x86_64 All results were similar netbeans - GUI shown with AA fonts (= AA enabled by default) netbeans -J-Dawt.useSystemAAFontSettings=off - GUI without AA fonts netbeans -J-Dawt.useSystemAAFontSettings=on - AA fonts netbeans -J-Dawt.useSystemAAFontSettings=lcd - AA fonts (little different from previous one, maybe due to subpixel rendering) Thanks, Man Lung Wong