JavaSwing on Linux: Change default fonts and enable system rendering
Hi, i have two question:
1) It's possible to change default java fonts of all java swing applications? I would change ALL to DejaVu Sans Book. On top of that i have noticed that in java font selector i have DejaVu Sans Book, but only DejaVu Sans (Plain/Boild/Italic) differently to gnome font selector.
2) Why i have this ( http://a.imagehost.org/view/0906/scrot_28-10-09_21h_39m_24s ) differences between gnome application and java application in font rendering ?
As you can see, fonts in swing GUI are without rendering, no hinting. It's possible to have the same (or similar) fonts rendering? I would font with hinting.
I'm using this look&fell: com.sun.java.swing.plaf.gtk.GTKLookAndFeel.
I have exported also this env variable:
export JAVAOPTIONS='-Dawt.useSystemAAFontSettings=lcd'
export JAVA_FONTS=/usr/share/fonts/TTF
and in /opt/java/jre/lib i have edited fontconfig.properties, this is the content:
version=1
serif.plain.latin-1=-misc-dejavu sans-book-r-normal---%d---p--iso8859-1
serif.bold.latin-1=-misc-dejavu sans-book-r-normal---%d---p--iso8859-1
serif.italic.latin-1=-misc-dejavu sans-book-o-normal---%d---p-*-iso8859-1
sequence.allfonts=latin-1
My java version is "1.6.0_20" and gnome version 2.30.
Thanks for any suggestion!
<ech0s7>