Ugly font rendering with Android Studio on Java8

Solution 1:

In the bundled JRE, there's a font configuration file which seems to default to full hinting.

To change this, open jre/lib/fonts/font.conf and locate the following part:

<edit mode="assign" name="hintstyle">
  <const>hintfull</const>
</edit>

There, replace hintfull with a different hintstyle, e.g. hintslight which is usually the default for other UIs in Ubuntu.

Solution 2:

IntelliJ and Android Studio have long had issues with font rendering. However a setting for this was added in Android Studio 2.0. It might help

Appearance and Behaviour > Appearance > Antialiasing

settings dialog window