Linux/Java font rendering - wrong size, too small


Fonts (editor fonts) in Intellij 13, 14 (also in Netbeans 8.1, 8.0.2), are rendered smaller then expected.
The same fonts with the same sizes in non-Java-based editors (eg. Geany, mousepad) and in the system looks right.
I have been looking for a solution - with no success. I think it may be realated to wrong DPI that java font renderer uses - still couldn't find a way to fix this. I also think it's not related hidpi stuff, since I'm ok with overall IDE sizes - the editor font it's just wrong.

Increasing the size in order to compensate the difference leads to unnaturally looking font.

Some examples:

Inconsolata 14 font in Idea::
Inconsolata 14 (expected) in other editors (Geany):

Similar situation with other fonts.

System: Ubuntu 14.04, Oracle JDK 1.8.0_45

Do you guys know to solve this..?


Adjust the font size in Settings | Editor | Font | Size or Settings | Appearance & Behavior | Appearance | Size.


Thanks, that issue was mainly about AA and subpixel smoothing and I came across those solutions earlier.

My main problem wrong font size.


Please sign in to leave a comment.