microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.38k stars 28.61k forks source link

user installed fonts not loaded after a reboot #173543

Open olfek opened 1 year ago

olfek commented 1 year ago

VS Code Version:

Version: 1.75.0 (user setup)
Commit: e2816fe719a4026ffa1ee0189dc89bdfdbafb164
Date: 2023-02-01T15:23:45.584Z
Electron: 19.1.9
Chromium: 102.0.5005.194
Node.js: 16.14.2
V8: 10.2.154.23-electron.0
OS: Windows_NT x64 10.0.22621
Sandboxed: No

OS Version:

     Edition  Windows 11 Pro
     Version  22H2
    OS build  22621.1194
  Experience  Windows Feature Experience Pack 1000.22638.1000.0

Steps to Reproduce:

  1. Download JetBrains Mono: https://www.jetbrains.com/lp/mono
  2. Install JetBrainsMono-Regular.ttf
  3. Install JetBrainsMonoNL-Regular.ttf
  4. Set "editor.fontFamily": "'JetBrains Mono'" in settings
  5. Set "editor.fontFamily": "'JetBrains Mono NL'" in settings

Observe that NL works and the plain one doesn't.

olfek commented 1 year ago

Actually, NL has stopped working now too 🤷‍♂️

kiriharu commented 1 year ago

Same problem, but NL works file

rzhao271 commented 1 year ago

I'm unable to reproduce the issue. Both fonts work for me. Does the issue still occur for either of you on the latest version of VS Code? If so, does the font work in other programs?

olfek commented 1 year ago

still doesn't work

Version: 1.79.2 (user setup)
Commit: 695af097c7bd098fbf017ce3ac85e09bbc5dda06
Date: 2023-06-14T08:57:04.379Z
Electron: 22.5.7
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Windows_NT x64 10.0.22621

@rzhao271

olfek commented 1 year ago
   Edition  Windows 11 Pro
   Version  22H2
  OS build  22621.1928
Experience  Windows Feature Experience Pack 1000.22644.1000.0
olfek commented 1 year ago

The JetBrains fonts don't show in Notepad or Paint or Paint 3D hmm 🤔

They do show in Inkscape and GIMP

olfek commented 1 year ago

Windows Terminal shows this error

image

olfek commented 1 year ago

Actually

It works now after removing and adding the font again 🤷

JetBrainsMono-Regular.ttf

VSCodeTriageBot commented 1 year ago

We closed this issue because we don't plan to address it in the foreseeable future. If you disagree and feel that this issue is crucial: we are happy to listen and to reconsider.

If you wonder what we are up to, please see our roadmap and issue reporting guidelines.

Thanks for your understanding, and happy coding!

olfek commented 1 year ago

After restarting my computer, it has now stopped working again hmm 🤔

@rzhao271 any chance we could re-open this? 🙏

rzhao271 commented 1 year ago

Does the font issue only occur with VS Code, or is it like https://github.com/microsoft/vscode/issues/173543#issuecomment-1620319004?

olfek commented 1 year ago

yeah it is the same as in that comment @rzhao271

rzhao271 commented 1 year ago

That seems more like a general font installation issue. Try uninstalling the font, redownloading the fonts from the JetBrains website, and then reinstalling them.

olfek commented 1 year ago

I think this might be a Windows bug.

Windows Terminal also has trouble loading user installed fonts after a reboot.

And I tried a different font too, Roboto Mono, same problem.

@rzhao271 you work at Microsoft right? could you perhaps share this internally with the Windows team?

olfek commented 1 year ago

So the steps for me are:

  1. Install a new font.
  2. Use font in VS Code / Windows Terminal - it works.
  3. Reboot computer.
  4. Font does not work.
olfek commented 1 year ago

Windows Font Cache Service

It may be a bug in the Windows Font Cache Service because following the instructions here (https://thegeekpage.com/how-to-delete-the-font-cache-on-windows-10/) temporarily fixes it until the next reboot.

rohitprofc commented 11 months ago

Hello 👋🏻 geeks @olfek , @rzhao271 , @kiriharu , @VSCodeTriageBot

In windows 11:

  1. Select all in JetBrains font folder
  2. Right click and got to show more options
  3. There you can find Install for all users
  4. Click install for all users
    • image
olfek commented 11 months ago

I can confirm that this solution works! Thank you! @rohitprofc

olfek commented 11 months ago

@rzhao271 So VSCode doesn't load user installed fonts after a reboot? 😕😕😕

rzhao271 commented 11 months ago

Reopening and marking as confirmation-pending

rohitprofc commented 11 months ago

@rzhao271 So VSCode doesn't load user installed fonts after a reboot? 😕😕😕

@rzhao271 @olfek

Windows OS also doesn't allow any user scripts to run, we have to give permissions to scripts also.

( I tried to install 3rd party packages [ that include some script files ] to directly download the src files from chrome inspect, so that we can download whole frontend locally 😝)

I don't know whether this one is only with windows 11 because version 11 brought more security features like secure boot, TPM 2.0 and improved kernel security layers. 💪

Maybe this is a move to improve security. 😌

jordles commented 5 months ago

Windows Font Cache Service

It may be a bug in the Windows Font Cache Service because following the instructions here (https://thegeekpage.com/how-to-delete-the-font-cache-on-windows-10/) temporarily fixes it until the next reboot.

Can confirm this is still an issue. I recently upgraded to windows 11, and thats when the fonts stopped working. Deleting font cache was the only way i could fix it. Though i had downloaded a new font some time after upgrading to windows 11, so that font was working for some time. After this new font stopped working, did I actually notice none of my user-installed fonts were working.

earomc commented 2 months ago

Still a problem for me. I don't have admin rights on my machine, meaning I cannot do the "Install for all users" solution. I always have to install the font again after each restart ...

astrolemonade commented 1 month ago

I have the same issue. Reinstalling the fonts doesn't fix the issue, they're still gone after reboot.

Edition Windows 11 Pro
Version 23H2
Installed on    ‎8/‎5/‎2024
OS build    22631.3958
Experience  Windows Feature Experience Pack 1000.22700.1026.0