Changing font type within a font family does not work in Visual Studio 2022

Alex 0 Reputation points

After installing several fonts with semi-bold styles, I'm encountering an issue where selecting these styles in Visual Studio doesn't apply the semi-bold weight. This problem persists across Visual Studio 2022 versions 17.7.5 and 17.8.0 Preview 7.0, even after a system restart. Interestingly, while the issue occurs with various fonts, the default 'Cascadia Mono' font works correctly.
Is there a way to adjust font-weight like VSCode.
The accompanying images demonstrate that despite the settings indicating a semi-bold style, it is not reflected in the code editor.




Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,121 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
6,818 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 22,581 Reputation points Microsoft Vendor

    Hello @Alex,

    Welcome to Microsoft Q&A forum.

    How did you install the fonts into Visual Studio? Can you confirm that the installed fonts are completely compatible with Visual Studio 2022?

    I tested on my side with VS 2022 17.7.6, and I failed to reproduce this issue, please kindly try following:

    1. Make sure that the fonts you are going to install support Visual Studio 2022.
    2. Try to reset VS settings by closing VS and running devenv /ResetSettings command in Developer Command Prompt for Visual Studio 2022.
    3. Try to reinstall the fonts(for example, open the .ttf file > click Install > replace the installed fonts).

    User's image



    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.