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

Alex 5 Reputation points
2023-11-09T21:55:58.95+00:00

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.

different

samefont3

samefont

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

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 30,566 Reputation points Microsoft Vendor
    2023-11-10T03:02:03.33+00:00

    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

    Sincerely,

    Tianyu


    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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.