I use both IntelliJ IDEA and Android Studio for development, and for the longest time I've been trying to figure out why the two programs, from the same company, and built on the same codebase, and using the exact same font settings (and same text anti-aliasing method) will render the text in the editor pane differently.

For example, with both programs set to use DejaVu Sans Mono, 12pt:

  • Android Studio:

    enter image description here

  • IntelliJ IDEA:

    enter image description here

You can clearly see the difference, the font is thinner and/or almost like it isn't anti-aliased in IntelliJ.

This has been driving me up the wall, as I find the text in IntelliJ much harder on the eyes.

Has anybody else experienced this before and know how to fix it?

  • I don't see the difference personally. Granted after decades of staring at a computer screen, my vision may be less than optimal...
    – Elder Geek
    Jan 26, 2018 at 16:52

3 Answers 3


Well, I managed to figure out how to fix it, and it's definitely not what I would have expected.

Turns out that IntelliJ was using my system JDK (Oracle's JDK 8) while Android Studio, which is now bundled with a JDK, was using its bundled one (OpenJDK 8).

Simply telling IntelliJ to use Android Studio's bundled JDK instead of the system JDK fixed the issue. You can do that like so:

  1. Go Help --> Find Action

    enter image description here

  2. Search for "boot JDK"

    enter image description here

  3. Click the ... in the drop down menu

    enter image description here

  4. Point it to {AS install DIR}/jre

    enter image description here

  5. Tell IntelliJ it's OK to restart:

    enter image description here

  6. When it comes back up, the font will now be fixed!

  • Very useful answer - solved my issue with rendering.
    – axel22
    Jul 31, 2019 at 11:42
  • Note that this solution is pretty out-dated now.
    – Yar
    Sep 25, 2020 at 2:14
  • @Yar what is the new solution?
    – Herman Zun
    Oct 12, 2021 at 22:13

1 - Edit <JetBrains product directory>/jre/jre/lib/fontsfont.conf

2 - Comment out all the <test> sections

Resulting file:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
  <match target="font">
    <test name="family" qual="all" compare="not_eq">
    <test name="family" qual="all" compare="not_eq">
      <string>Noto Sans Mono CJK JP</string>
    <test name="size" qual="any" compare="less">
    <test name="weight" compare="less">
    <edit mode="assign" name="hintstyle">

3 - Restart Idea


I've noticed this too. I am using the One Dark theme on IntelliJ and Android Studio. IntelliJ by default shows colors more vividly it seems.

If you choose Theme > One Dark in IntellJ, and Theme > One Dark Vivid in Android Studio then the differences are less apparent.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .