Jetbrainsmono: Curly braces don’t align at certain font sizes in PyCharm

Created on 16 Jan 2020  Â·  17Comments  Â·  Source: JetBrains/JetBrainsMono

When using {} in PyCharm, the curly braces don’t align at sizes 10-15. They always seem a little misaligned after that, but it is much better.

bug

Most helpful comment

Same in WebStorm. Size 13
image

All 17 comments

image

image

Agreed.

Same in WebStorm. Size 13
image

Also happens on Jetbrains Rider 2019.3.1
2020-01-16_16h29_40

Font size: 14
Line spacing: 1.0

WS-193.5662.54

Font sizes: 12, 13, 14
Line spacing: 1.2

image (4)
image (3)
image (5)

Hi, it's a bug of the v 0.23 of the JetBrains Mono. Unfortunately, the bundled fonts is always have priority when IDE decided which to use. We are working on correcting this behaviour. This problem will be solved when v 1.0 will be bundled.
You can try to fix it for now by switching to grayscale _antialiasing_ in Settings → Appearance

I don't see the misalignment on VS Code, XCode, IntelliJ, and TextEdit on my Mac.

jetmono_bracket_alignment

Likely a slight misalignment between brace outlines. A custom CVT would also help lock these together.

This problem will be solved when v 1.0 will be bundled.

Any ETA on v1 bundle?

Seems that this problem is still present in v1.0.0 bundle, see the following screenshot from JetBrains Rider IDE:

image

Workaround found in #49 - remove bundled font and install latest version from the site systemwide

I am using the font downloaded from https://www.jetbrains.com/lp/mono/ but the issue is still there.

Here is the reported version:

image

I did the same thing as @gimmi and the bracers are still mis-aligned.

Can confirm this is... a bit disturbing :)

Using latest IntelliJ Idea (2019.3.2) on Windows (didn't try downloading the font separately, but it doesn't seem to be making any difference anyway).

a workaround is to use the medium variant of the font. (using phpstorm + windows 10 1080p)

@gimmi Did you properly removed the bundled fonts?

The files can be found in:

Win

  1. IDEA\jbr\lib\fonts
  2. If you using Toolbox C:\Users\ username\AppData\Local\JetBrains\Toolbox\apps\CLion\ch-0\193.6015.37\jbr\lib\fonts\

Mac
IntelliJ\ IDEA.app/Contents/jbr/Contents/Home/lib/fonts/

And it's important to restart.

@philippnurullin It worked!

I'm using Rider, so I removed the JetBrains fonts from

C:\Program Files\JetBrains\JetBrains Rider 2019.3.1\jbr\lib\fonts

This issue is fixed in the latest version of PyCharm. Thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

CreamyCookie picture CreamyCookie  Â·  3Comments

khasbilegt picture khasbilegt  Â·  3Comments

thlinard picture thlinard  Â·  6Comments

mehmandarov picture mehmandarov  Â·  6Comments

pohlium picture pohlium  Â·  3Comments