Bug 539971
| Summary: | Font AA is disabled by defaul (GTK Apps look ugly) | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | drago01 |
| Component: | java-1.6.0-openjdk | Assignee: | man lung wong <mwong> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 12 | CC: | alex, conscript89, david.m.beer, dbhole, langel, leifer, lkundrak, mail, mjw, mmatejov, msntfs, pikachu.2014 |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2010-05-18 17:55:11 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
drago01
2009-11-21 19:38:06 UTC
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 |