简体   繁体   中英

JetBrains IDE font rendering incorrect on Windows and Linux

I recently switched from Windows 11 to Nobara 37 GNOME (Fedora) and found the following problem:
PyCharm and WebStorm display the font differently in Windows and Linux with completely identical IDE settings.

  • Font: JetBrains Mono (default)
  • Size: 13
  • Line height: 1.2
  • Antialiasing: Subpixel

As you can see, on Linux, the font is smaller in height and looks "compressed and stretched".
It is extremely inconvenient to work, it hurts the eyes.

IDE Settings
https://i.stack.imgur.com/UXwQP.png
https://i.stack.imgur.com/aYEKo.png

What I've already tried:

  1. Reinstall the IDE
  2. Check the JetBrains Mono font files on Windows and Linux, they turned out to be the same
  3. I noticed that on Linux, when font smoothing is turned off, the character height returns to normal, but on Windows, the character height does not change in any way and always remains the same.

It seems that I was able to achieve about the same result as in Windows. To do this, I had to increase the font by one size (14) and set the line height to 1.1. It seems that this is really an IDE or font problem, since there is no such problem with other fonts.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM