[xmonad] Problem with anti-aliased fonts in Java/Swing applications

Daniel Anderson dankles at linux.com
Wed Jan 19 22:01:16 CET 2011


Do you have an ~/.Xdefaults file or a ~/.fonts.conf?

You cant try enabling hinting in your ~/.Xdefaults or ~/.Xresources like this:

Xft.hinting:    true
Xft.hintstyle:  hintfull



Here are the relevant sections of mine:

! Xft settings ---------------------------------------------------------------

Xft.dpi:        96
Xft.lcdfilter:  lcddefault
!Xft.antialias:  true
Xft.rgba:       rgb
Xft.hinting:    true
Xft.hintstyle:  hintfull
!Xft.hintstyle:  hintslight


On Wed, Jan 19, 2011 at 11:42 AM, Christophe Garion
<tofgarion+xmonad at runbox.com> wrote:
> Hello,
>
> I have a problem with xmonad under Debian with no particular config (no
> Config.Gnome etc.): in every Swing application, fonts are not
> anti-aliased, which is ugly.
>
> If I add the -Dawt.useSystemAAFontSettings=on option when I start a jvm,
> fonts are anti-aliased. There is no global property file in Oracle jdk
> to configure this (notice that the problem is the same for openjdk). I
> can use the _JAVA_OPTIONS environment variable to set this option, but
> it adds comments in the console every time I launch a java application,
> which I do not want. There is no problem with GTK applications.
>
> If I start a gnome-session from xmonad, fonts in swing applications are
> correctly anti-aliased.
>
> Is there a way to correct this problem?
>
> Sorry if an answer has already been provided, but I did not find any
> searching the web and Xmonad website.
>
> Thanks in advance,
>
> Christophe
>
> --
> Christophe Garion          ISAE/DMIA - SUPAERO/IN
> garion at isae.fr             10 avenue Edouard Belin
> Tél : (33)5 61 33 80 57    BP 54032
> Fax : (33)5 61 33 83 45    31055 Toulouse Cedex 4
>
> _______________________________________________
> xmonad mailing list
> xmonad at haskell.org
> http://www.haskell.org/mailman/listinfo/xmonad
>



More information about the xmonad mailing list