Bug 964287

Summary: [rfe] improve font settings
Product: [Fedora] Fedora Reporter: Rahul Sundaram <metherid>
Component: java-1.7.0-openjdkAssignee: jiri vanek <jvanek>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: ahughes, dbhole, fschwarz, jerboaa, jvanek, omajid, samuel-rhbugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-09-25 13:40:58 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Rahul Sundaram 2013-05-17 18:32:56 UTC
Description of problem:

If I run intellij idea or many swing applications, the default font settings don't work well and as a result intellij developers have been recommending against openjdk.  The following setting makes it much much better.  can we make sure the defaults work well?

export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel'


refer to 
http://youtrack.jetbrains.com/issue/IDEA-70860
http://youtrack.jetbrains.com/issue/IDEA-57233

Comment 1 Rahul Sundaram 2013-05-17 18:37:09 UTC
system font settings can be set to lcd as well.  this is a common enough problem that i see such documentation in quite a number of places

https://wiki.archlinux.org/index.php/Java_Runtime_Environment_Fonts
https://wiki.archlinux.org/index.php/Java#Better_font_rendering

Comment 2 Deepak Bhole 2013-05-17 18:51:24 UTC
Jiri, what are the implications of setting AA to always true, do you know?

Comment 3 Nicolas Mailhot 2013-05-18 09:47:39 UTC
The correct fix on linux would be to pick up fontconfig settings, not hardcode new ones, since openjdk will end up rendrering fonts with the same font libs anyway

The current broken state is not a poor default choice but lack of system integration (java's bane due to SUN's irrealistic long-term objective of marginalising the software layers it didn't control)

Comment 4 jiri vanek 2013-05-20 11:29:17 UTC
Except performance and Nicolas' hint probably none. Although I would rather  avoid the -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel as default.

I will try to run some benchamrks.