Java Fonts and Linux

Ubuntu 10.04+ Font Configuration

The setup has change in 10.04+.

First, you still need to install the Arial font.

sudo aptitude install msttcorefonts

Secondly, there are specific mapping files installed for Ubuntu, But I just delete them and deal directly with the fontconfig.properties file.

sudo rm /usr/lib/jvm/java-6-sun/jre/lib/fontconfig.Ubuntu.*

Then replace /etc/java-6-sun/fontconfig.properties with the attached file.
fontconfig.properties (17.6 KB)