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

Cannot use any font besides Consolas #14231

Closed
derekslenk opened this issue Oct 15, 2022 · 8 comments
Closed

Cannot use any font besides Consolas #14231

derekslenk opened this issue Oct 15, 2022 · 8 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@derekslenk
Copy link

Windows Terminal version

1.15.2713.0

Windows build number

10.0.22621.0

Other Software

oh-my-posh

Steps to reproduce

Install oh-my-posh with any of the available ways.
Install a Nerd Font in any available way.
Select the nerd font as your default font in terminal and it won't work.

Expected Behavior

Be able to use a different font that I install besides Consolas

Actual Behavior

Unable to find the selected font "ANYTHING NF".

"Consolas" has been selected instead.

Please either install the missing font or choose another one
@derekslenk derekslenk added Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Oct 15, 2022
@derekslenk
Copy link
Author

This worked until the 22H2 update

@j4james
Copy link
Collaborator

j4james commented Oct 16, 2022

I suspect this might be the same issue as #3257.

@ohroy
Copy link

ohroy commented Oct 17, 2022

tried many nerd fonts...same

@FDUZS
Copy link

FDUZS commented Oct 17, 2022

Same here. It seems to be system-wide, not just windows terminal. And, only nerd fonts are affected?

matthewjberger/scoop-nerd-fonts#198

@lhecker
Copy link
Member

lhecker commented Oct 17, 2022

If I'm guessing right (and if j4james is right) this is the old font caching bug.

That one affects anyone who tries to install via any of the regular install methods. In other words, all of those:



...don't work correctly in any recent Windows version and you can't use them without encountering this bug. This includes versions before 22H2 btw, see #12587 for instance.

Instead what you have to do is:

  • clean your %LOCALAPPDATA%\Microsoft\Windows\Fonts directory of your previously installed, broken fonts
  • hold Shift and Right-Click the font file and click this:

I don't know in what Windows version this bug will be fixed but I'm personally hoping for it to be resolved next year.

@FDUZS
Copy link

FDUZS commented Oct 17, 2022

Same here. It seems to be system-wide, not just windows terminal. And, only nerd fonts are affected?

matthewjberger/scoop-nerd-fonts#198

the workaround offered by Dabombber in the issue above is to restart the font cache service via Restart-Service -Name FontCache, which does temporarily solve the problem. I guess I have to run it after every reboot, though.

@carlos-zamora
Copy link
Member

Marking this as /dup #3257

@ghost
Copy link

ghost commented Oct 26, 2022

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.
Projects
None yet
Development

No branches or pull requests

6 participants