Search code examples
visual-studio-2022

Visual Studio Editor falls back to Courier


After a reboot, the Visual Studio editor fallbacks to Courier font. Does anyone have any idea of why this is happening and what you can do about it?

I'm using the following version of VS: Microsoft Visual Studio Professional 2022 (64-bit) - Version 17.1.3

I'm running the following version of Windows: Windows 10 Enterprise, Version 21H2


Solution

  • This seems to be problem for some people, including myself. It is already reported at the Visual Studio Developer Community. tl;dr - this workaround is the fastest - reinstall Cascadia Mono via choco.

    They changed the default font in Visual Studio 2022 to Cascadia Mono.

    To answer your question why this suddenly breaks - the root cause seeems unclear as of this moment, but that font gets corrupted or removed and VS reverts back to some other font, in my case Courier. Repairing Visual Studio or reinstalling the font is required.

    Or even easier, if you like the prior default font more, Consolas, just use that.