jonz94 / Sarasa-Gothic-Nerd-Fonts

Nerd fonts patched Sarasa Gothic font.
MIT License
206 stars 10 forks source link

SemiBold display incorrectly in visual studio 2022 #22

Closed EVANGELION-Air closed 11 months ago

EVANGELION-Air commented 11 months ago

Visual Studio 2022 17.7.3 Windows 11 22621.2134 Sarasa term sc nerd font v0.41.9-0 Sarasa term sc font 0.41.9

I installed both Sarasa term sc font and Sarasa term sc nerd font.

The following pictures show the display effect when select Sarasa term sc regular, Sarasa term sc semibold, Sarasa term sc nerd regular and Sarasa term sc nerd semibold in Visual Studio setting for code editor's font:

1 2 3 4

It can be seen that the font display effects in CODE EDITOR is same when select Sarasa term sc nerd regular or semibold. This is very strange, because it is correctly displayed in the SAMPLES in SETTING WINDOWS, and Sarasa term sc also correctly displayed in both regular and semibold in CODE EDITOR and SAMPLES in SETTING WINDOWS.

I have confirmed that both Sarasa term sc font and Sarasa term sc nerd font is installed with Regular and semibold versions:

5 6

jonz94 commented 11 months ago

Thanks for reporting this issue. I can reproduce this bug on my end.

I think this bug is caused by the font name Sarasa Term SC Nerd Font SemiBold being too long for Visual Studio. Some Windows applications may encounter problems when the font name is excessively long. As a result, the SemiBold font may not be rendered properly by Visual Studio.

The solution I have come up with is to release a separate set of fonts that have shorter font names. I will probably try to fix this bug next weekend while I have some free time.

jonz94 commented 11 months ago

Hi @EVANGELION-Air,

I recreated the Sarasa Term SC Nerd Font SemiBold font, renaming it as Sarasa Term SC NF SmBd, and it appears to have resolved the issue:

Here is the link to download the fixed fonts for now: shorten-sarasa-term-sc-semibold-nerd-font.zip

You could try it out and see if the issue is resolved.

EVANGELION-Air commented 11 months ago

Hi @EVANGELION-Air,

I recreated the Sarasa Term SC Nerd Font SemiBold font, renaming it as Sarasa Term SC NF SmBd, and it appears to have resolved the issue:

  • Before before
  • After after

Here is the link to download the fixed fonts for now: shorten-sarasa-term-sc-semibold-nerd-font.zip

You could try it out and see if the issue is resolved.

It displayed normally after modifying the name. Thank you for your modification!