Visual studio 2022 changed my system font

Viewed 17177

Recently I installed vs 2022 to test .net 6 and after installing it, I found the default font in vs 2022 is like a bolder font(seems to be Cascadia), it's not fits me well so I changed it in vs 2022 pre->tools->options->fonts and colors to change it to Consolas which is the same in vs 2019. Then vs 2022 seemed ok, but I found in stackover flow, text font in textarea also changed to this kind of "bolder font",

I've ruled out the issue from chrome, as it's the same in Edge. But input box doesn't be influenced.

Details in screenshot here, the font of the words in textarea and those formated in code has changed.

Can anyone do me a favor? Thanks in advance :)

enter image description here

3 Answers

I noticed the changed font right away, too. I changed from Consolas Mono back to the older Consolas.

Tools (menu) -> Options
  Environment (category) -> Fonts and Colors
    Show Settings for: Text Editor
    Font:  Consolas

Tools.Options.Environment.FontsandColors

I'm not sure if it's the best solution but it's the only method with luck, just uninstall the font in win 10 system.

Go to settings-> choose font setting-> find and click into Cascadia and Cascadia mono-> click uninstall , then it returned to normal for me.

When I uninstalled Cascadia mono it appeared a pop-up and told me it's in use, so I closed my chrome and continued the uninstall action.

Done here.

The font used by Stackoverflow is only very loosely connected to the font used by Visual Studio 2022 - in that if you have never installed the Cascadia font family prior to installing Visual Studio, it will then be installed.

At the time of writing, Stackoverflow's code editor uses the following CSS declaration:

--ff-mono: ui-monospace,"Cascadia Mono","Segoe UI Mono","Liberation Mono",Menlo,Monaco,Consolas,monospace;

The ui-monospace font is a future standardised way of selecting the system monospace font, but is currently only supported by Safari. Therefore, as soon as you install the Cascadia font package (from whatever source - it's included now in various Microsoft products), Stackoverflow will switch to using that as the second highest priority font listed.

As to how to stop it happening - your only option is to uninstall the Cascadia Mono font, or to pester the design people at Stackoverflow to get them to remove it as an option from their CSS.

Related