user760613
user760613

Reputation:

Why are fonts looking so different in different themes in intellij?

In IntelliJ the Darcula theme fonts look as follows

enter image description here

and in the default light theme they look as follows

enter image description here

I want to use the lighter default theme, but I find the fonts in darcula theme to be more "clear" then the default lighter theme. Can you let me know how to correct this?

PS : I am using a Linux machine

Upvotes: 6

Views: 7266

Answers (2)

therealrootuser
therealrootuser

Reputation: 10904

I had the same question, and finally was able to discover the following:

The issue is not one font smoothing, but of the Default theme and the Darcula theme using different fonts on Linux. On my computer, the Default theme uses DejaVu Sans Mono, 12pt, but the Darcula theme uses Source Code Pro, 14pt.

DarculaDefault-DarculaDefault

If you want the Darcula Font, then go to File > Settings > Editor > Colors and Fonts > Font, make a copy of the Default scheme, and then change the font to Source Code Pro, 14pt.

See also the Wikipedia article on Source Code Pro .

Upvotes: 1

Ashutosh Jindal
Ashutosh Jindal

Reputation: 18869

This is controlled by Settings -> Editor -> Color & Fonts -> Font

However, I do not see a difference between the fonts for Darcula and the default theme :

Darcula :

enter image description here


vs.

Default:

enter image description here

both seem to use the same Consolas, Size 12 font.

Update

Since this is happening on Linux, from here:

Anti-aliasing of fonts is available with Oracle Java 1.6 on Linux. To do this on a per user basis, add the following line to the user's ~/.bashrc.

export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=[setting]'

Two other useful links :

How to fix font anti-aliasing in IntelliJ IDEA when using high DPI?

Intellij IDEA font smoothing in linux

Upvotes: 3

Related Questions