Font Rendering

Hello,

I know this topic has been discussed but I could not find any answer regarding how to properly display font on my screen.

When I compare the font rendering between Webstorm/Intellij'Idea and VSCode/Atom/Visual Studio the fonts look different.

In Webstorm the font rendering is not "smooth", we can see that there are "missing" pixels"

To make things clear I compared IDE font rendering with the same :

  • Screen
  • Resolution
  • Scaling
  • Font
  • Font Size

I tried to change the Antialiasing without any improvement in any of the available modes (currently keeping the default SubPixel).

I have compared this behaviour on Windows 10. I can compare it on Mac if necessary.

Any solution/plugin available to improve font rendering?

Thanks,

Thomas

 

 

10 comments
Comment actions Permalink

What font/antialiasing settings did you try? What is your screen resolution? What IDE buuild do you work with?

Screenshots that show up the issue might be helpful

0
Comment actions Permalink

Same here, using windows 10, Fira Code font, subpixel antialiasing, somehow grayscale looks better and that should not happen. (intelliJ and Webstorm, both updated).

 

Same font with same configurations looks way much better on Ubuntu.

2
Comment actions Permalink

Sorry for the late reply please see all the differences in the attached screenshot.

All these differences do not apply to any other IDE I have been using. Only the Intellj'Idea family.

These differences reduce the readability of the code.

 

Antialiasing : As explained I tried all the options

Resolution : Tried on 4 different screens :

  • Windows : 4k, 1920x1080, 1920x1200
  • Mac : 2880x1800

IDE Build  : 2017.3.4

 

Thanks,

Thomas

0
Comment actions Permalink

what font is being used? What do the results look like when using 'subpixel' antialiasing?

Note that this is JDK that is responsible for font rendering in WebStorm, etc.

0
Comment actions Permalink

Font is Consolas.

The screenshot has been taken with subpixel.

Even if the JDK is responsible for font rendering, could you try to ask why there is such a problem.

I can see a post (https://intellij-support.jetbrains.com/hc/en-us/community/posts/206307339-IDEA-renders-fonts-differently-than-other-applications-in-Windows) on this same forum dated from 2007 without any answer. It means that this problem has been there for at least 11 years now.

I also found this post : https://codeyarns.com/2015/10/21/how-to-fix-font-of-intellij/. But it is targeting linux but I could not find any solution for windows.

 

Thanks for your help.

Thomas

0
Comment actions Permalink

Please see https://youtrack.jetbrains.com/issue/JRE-48#comment=27-1956116 for possible workaround.

 

>Even if the JDK is responsible for font rendering, could you try to ask why there is such a problem

 

There are plently of known issues Oracle is not eager to fix. That's why JetBrains is using its own patched JRE for running IDEs by default - this JRE is based on OpenJDK and includes many fixes related to aliasing, HIDPI support, etc.

See  https://confluence.jetbrains.com/display/JRE/Fonts+Layout+Rendering for details on font rendering in OpenJDK

0
Comment actions Permalink

IntelliJ doesn't use DirectWrite to render fonts (which is used by all the other products you quote). The font rendering system used by Java (GDI) is old and very limited.

4
Comment actions Permalink

Is fixing this anywhere on the roadmap? This is a dealbreaker for using Rider on Windows.

3
Comment actions Permalink

goland 2019.1 do not fix this problem.

0
Comment actions Permalink

The products are magnificent, state of the art, but damn this java font rendering, sorry but the IDE and Code fonts are terrible compared with other editors... The products are magnificent, state of art, but damn this java font rendering....

1

Please sign in to leave a comment.