JetBrains / JetBrainsMono

JetBrains Mono – the free and open-source typeface for developers
https://jetbrains.com/mono
SIL Open Font License 1.1
10.98k stars 302 forks source link

Terrible font rendering in Visual Studio 2019 #108

Closed alexhajdu closed 4 years ago

alexhajdu commented 4 years ago

image

I've big issues using your font in Visual Studio. See the screenshot and config.

JetBrains Mono 1.0.2 13px Visual Studio 2019 Professional 16.4.3, 100% screen res: 2560x1440

philippnurullin commented 4 years ago

@alexhajdu Hi, what type of antialiasing is used in your IDE?

alexhajdu commented 4 years ago

@philippnurullin I'm not aware I can choose the type of antialiasing in Visual Studio. I see issues in comparison with VSCode or CLion on the same setup. On different fonts, the difference is not so huge.

philippnurullin commented 4 years ago

@alexhajdu Looks like hinting problem. In latest versions JetBrains Mono was processed by ttfautohint. The next release will include manual hinting. Hope this solves the problem. Can you send me screenshots with more monospaced fonts? Like Fira Code, Menlo, Consolas.

alexhajdu commented 4 years ago

image FiraCode 13px

alexhajdu commented 4 years ago

image InputMono, 13

alexhajdu commented 4 years ago

image Menlo, 13

glenvan commented 4 years ago

@alexhajdu, I have similar issues in VS2015. I used an extension called Text Sharp to set the rendering mode to ClearType / Ideal, disabling the Display hinting for now.

It looks better (if a little fuzzy) to my eye.

alexhajdu commented 4 years ago

See my ticket and answers from MS about readability and rendering engine differences for VSCode and VS. It's kinda interesting. Also, the hotfix will be delivered in the next update. https://developercommunity.visualstudio.com/content/problem/899361/editor-readability.html?childToView=904574#comment-904574

rmaenk commented 4 years ago

Hello, I have the same issue in Visual Studio 2017 (build 15.9.19). As workaround you can use zoom level different than 100%. In my case zoom level is 110% and font size is 11pt - good for FullHD monitor, use large font size for 2K-4K. Zoom input element can be found in left bottom corner in IDE. image

f2l2pe commented 4 years ago

You can also install the textsharp extension, it makes the text rendering inside VS2019 a LOT better

alexhajdu commented 4 years ago

I've created a ticket also for Visual Studio developers. They implemented it promptly and font antialiasing is now part of the Visual Studio 16.5.0.

tullo-x86 commented 4 years ago

This just started happening on my machine after installing the most recent VS2019 update (16.5.3).

I fixed it using the TextSharp extension with these settings: ⚠️ This is built-in now, see edit

image

EDIT: As seen below, this is now built into Visual Studio; Text Sharp is unnecessary.

image

gabrielcoffee commented 4 years ago

I had the same problem, I tried to lower the font and zoom and installed the TextSharp and both didn't make any difference. I would like to use vscode but for some reason it doesn't work with unity for me, great.

alexhajdu commented 4 years ago

Note we have antialiasing right in the VS so TextSharp is IMHO no longer a must. image

ITSecMedia commented 4 years ago

The Microsoft devs forgotten to apply the new introduced font rendering feature to the onhover menus too. When you choose the best style for JetBrains Mono you get nasty rendering in the popups. image

ITSecMedia commented 4 years ago

And it looks like there is a ligature bug in VS for " -> <- " arrows. image

astrolemonade commented 4 years ago

Note we have antialiasing right in the VS so TextSharp is IMHO no longer a must. image

How did you manage to set the font of the actual options ? The left menu

johnisfine commented 3 years ago

Hello, I have the same issue in Visual Studio 2017 (build 15.9.19). As workaround you can use zoom level different than 100%. In my case zoom level is 110% and font size is 11pt - good for FullHD monitor, use large font size for 2K-4K. Zoom input element can be found in left bottom corner in IDE. image

I'm using Cascadia Code font, font rendering was terrible, I've set size to 11px and zoom to 110% and it fixed it, thanks!

OculiViridi commented 3 years ago

Note we have antialiasing right in the VS so TextSharp is IMHO no longer a must. image

How did you manage to set the font of the actual options ? The left menu

@johnisfine I think it's probably due to the Windows system font that the user has set on his system settings.

thanhphuc3010 commented 3 years ago

The Microsoft devs forgotten to apply the new introduced font rendering feature to the onhover menus too. When you choose the best style for JetBrains Mono you get nasty rendering in the popups. image

I had the same problem. How can I fix this. Thanks

fernando-goncalves92 commented 2 years ago

The Microsoft devs forgotten to apply the new introduced font rendering feature to the onhover menus too. When you choose the best style for JetBrains Mono you get nasty rendering in the popups. image

I had the same problem. How can I fix this. Thanks

I'd like to know too.

DajianXu commented 2 weeks ago

I need text render like visual studio code.