Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do eclipse and intelliJ render fonts so differently?

And how do I get intelliJ rendering of the ubuntu font, on par??

I have eclipse perfectly using the Ubuntu font resulting in crisp, clear and properly kerned rendering, whereas intelliJ IDEA miserably renders the same named font on the same desktop.

The problem is mostly with the kerning, in the intelliJ redner the kerning is so terrible that ") are oddly squashed together:

enter image description here

I have looked at similar questions like this one which seem to be outdated or incorrect. Also the best answer in https://askubuntu.com/questions/454361/font-in-intellij-idea-on-ubuntu-14-04 says "don't use in Ubuntu 14", which happens to be my OS.

Although DejaVu Sans kerns slightly less badly in intelliJ, it seems kerning has been really left broken for a long long while...

What might be the solution for intelliJ?

like image 967
matanster Avatar asked Dec 02 '25 09:12

matanster


2 Answers

Eclipse is based on SWT toolkit which is a java wrapper around native UI components, in your case GTK. IntelliJ is based on Swing and AWT thus rendering is based on whatever JDK implements itself. There are differences between OpenJDK and Oracle JDK and JDK prepared by JetBrains.

See this discussion for IntelliJ. In general, you might

  • install another JDK (preferably one recommended by JetBrains)
  • use JetBrains new Mono font
like image 101
mantrid Avatar answered Dec 05 '25 02:12

mantrid


Yes. That is a problem for me too. I can't fix it, but found tolerant variant for me: Font: Anonymous Pro Bold 19pt.(Windows OS, but looks same as in Ubuntu) enter image description here

It looks still ugly, but better than stock fonts

like image 30
Timofey Orischenko Avatar answered Dec 05 '25 03:12

Timofey Orischenko



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!