Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

user installed fonts not loaded after a reboot #173543

Open
olfek opened this issue Feb 6, 2023 · 25 comments
Open

user installed fonts not loaded after a reboot #173543

olfek opened this issue Feb 6, 2023 · 25 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug confirmation-pending font-rendering Font rendering issues workbench-fonts
Milestone

Comments

@olfek
Copy link

olfek commented Feb 6, 2023

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
Copy link
Author

olfek commented Feb 6, 2023

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

@kiriharu
Copy link

kiriharu commented Mar 2, 2023

Same problem, but NL works file

@rzhao271 rzhao271 added bug Issue identified by VS Code Team member as probable bug confirmation-pending labels Mar 2, 2023
@rzhao271 rzhao271 added this to the Backlog milestone Mar 2, 2023
@rzhao271
Copy link
Contributor

rzhao271 commented Jul 3, 2023

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?

@rzhao271 rzhao271 added info-needed Issue requires more information from poster and removed confirmation-pending labels Jul 3, 2023
@olfek
Copy link
Author

olfek commented Jul 4, 2023

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
Copy link
Author

olfek commented Jul 4, 2023

   Edition  Windows 11 Pro
   Version  22H2
  OS build  22621.1928
Experience  Windows Feature Experience Pack 1000.22644.1000.0

@olfek
Copy link
Author

olfek commented Jul 4, 2023

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

They do show in Inkscape and GIMP

@olfek
Copy link
Author

olfek commented Jul 4, 2023

Windows Terminal shows this error

image

@olfek
Copy link
Author

olfek commented Jul 4, 2023

Actually

It works now after removing and adding the font again 🤷

JetBrainsMono-Regular.ttf

@rzhao271 rzhao271 added the *out-of-scope Posted issue is not in scope of VS Code label Jul 5, 2023
@vscodenpa
Copy link

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!

@vscodenpa vscodenpa closed this as not planned Won't fix, can't repro, duplicate, stale Jul 5, 2023
@olfek
Copy link
Author

olfek commented Jul 5, 2023

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

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

@rzhao271
Copy link
Contributor

rzhao271 commented Jul 5, 2023

Does the font issue only occur with VS Code, or is it like #173543 (comment)?

@olfek
Copy link
Author

olfek commented Jul 5, 2023

yeah it is the same as in that comment @rzhao271

@rzhao271
Copy link
Contributor

rzhao271 commented Jul 5, 2023

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

@rzhao271 rzhao271 added the *question Issue represents a question, should be posted to StackOverflow (VS Code) label Jul 5, 2023
@olfek
Copy link
Author

olfek commented Jul 6, 2023

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
Copy link
Author

olfek commented Jul 6, 2023

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
Copy link
Author

olfek commented Jul 6, 2023

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
Copy link

rohitprofc commented Oct 8, 2023

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
Copy link
Author

olfek commented Oct 8, 2023

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

@olfek
Copy link
Author

olfek commented Oct 8, 2023

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

@rzhao271
Copy link
Contributor

rzhao271 commented Oct 9, 2023

Reopening and marking as confirmation-pending

@rzhao271 rzhao271 reopened this Oct 9, 2023
@rzhao271 rzhao271 added confirmation-pending workbench-fonts font-rendering Font rendering issues and removed *question Issue represents a question, should be posted to StackOverflow (VS Code) info-needed Issue requires more information from poster *out-of-scope Posted issue is not in scope of VS Code workbench-fonts labels Oct 9, 2023
@olfek olfek changed the title JetBrains Mono does not work but JetBrains Mono NL does user installed fonts not loaded after a reboot Oct 9, 2023
@rohitprofc
Copy link

rohitprofc commented Oct 11, 2023

@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
Copy link

jordles commented Apr 6, 2024

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
Copy link

earomc commented Jul 12, 2024

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
Copy link
Contributor

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

@rohitprofc
Copy link

@jordles @rzhao271 @astrolemonade

  • As I said already here installing the font for all users should fix issue.
  • @earomc Without having admin rights I think we cannot solve the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug confirmation-pending font-rendering Font rendering issues workbench-fonts
Projects
None yet
Development

No branches or pull requests

8 participants