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

Unable to find the selected font #14173

Closed
ggutenberg opened this issue Oct 10, 2022 · 10 comments
Closed

Unable to find the selected font #14173

ggutenberg opened this issue Oct 10, 2022 · 10 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

@ggutenberg
Copy link

ggutenberg commented Oct 10, 2022

Windows Terminal version

1.16.264

Windows build number

10.0.22621.521

Other Software

Nerd Fonts (https://www.nerdfonts.com/font-downloads)

Steps to reproduce

Download and install a Nerd Font from https://www.nerdfonts.com/font-downloads

Within Windows Terminal, go to:

Settings > Ubuntu > Appearance > Font Face > Pick a Nerd Font (I've tested this with CodeNewRoman NFM and CaskaydiaCove Nerd Font Mono) > Save

Open a new Ubuntu tab. All is good.

Close Windows Terminal. Re-open it. An error is displayed:

image

And the Nerd Font is not used. Going back into Settings > Ubuntu > Appearance and just hitting Save allows the font to render correctly within that terminal instance. Closing it and opening it again causes the issue to repeat.

Note that this only started occurring after upgrading to 22H2.

Expected Behavior

No error appears and the font that's set is used.

Actual Behavior

An error is displayed:

image

And the font is not used.

@ggutenberg ggutenberg 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 10, 2022
@GabeDuarteM
Copy link

GabeDuarteM commented Oct 11, 2022

I have a slightly similar problem. Some days ago when I opened wsl, it asked me to update it to the windows store, or something like that, asking me to run wsl.exe --update. I found weird, because I was already using the windows store version of ubuntu, but I ran it anyway, and everything was fine for that day. After that, on the next day I restarted the computer, and when I opened windows terminal I got the following message:

Unable to find the selected font "Hack Nerd Font Mono".

"Consolas" has been selected instead.

Please either install the missing font or choose another one.

I then uninstalled the Hack font and reinstalled it, restarted the computer as prompted, and now it shows

Unable to find the selected font "Hack Nerd Font Mono".

"Hack" has been selected instead.

Please either install the missing font or choose another one.

(it picks hack now instead of Consolas)

It correctly picks Hacks, but any nerdfont specific characters are not rendered (cause its not the nerdfont variant I specified)

as you can see below, the font is present and it is installed, and I can use it normally on notepad for example, its only on windows terminal that I have this issue, and I'm downloading the official hack font, which already includes the nerdfont variant, but I also tried downloading the specific one from the nerdfont gh repo, but still the same problem

image

Im on Windows 11 Version 10.0.22621 Build 22621
Terminal Version: 1.15.2713.0

@dwmuller
Copy link

dwmuller commented Oct 11, 2022

Having a similar problem. Bash for Git and Powershell work, but a WSL terminal fails to render a character in my prompt, specifically \u276f . All are configured to use the same nerd font. This is on Win11, Terminal version 1.15.2713.0.

@ggutenberg
Copy link
Author

This issue appears to be resolved with the 2022-10 Cumulative Update for Windows 11 Version 22H2 for x64-based Systems (KB5018427) update. At least for me. Closing this particular issue.

@ggutenberg
Copy link
Author

I was mistaken. The issue reappeared this morning. I'm not sure what resolved it temporarily, but it's back.

@ggutenberg ggutenberg reopened this Oct 12, 2022
@simsrw73
Copy link

simsrw73 commented Oct 16, 2022

I've been experiencing this also. Only since upgrading to 22H2. Reinstalling the Meslo nerd font fixes it until Windows is restarted. I've spot checked a few other nerd fonts with same result. The fonts correctly appear in the C:\Users\<user>\AppData\Local\Microsoft\Windows\Fonts directory. Fonts are usable in other apps. But Terminal does not see them until I reinstall them (.\install.ps1 -WindowsCompatibleOnly Meslo). Tried latest stable and preview releases.

@j4james
Copy link
Collaborator

j4james commented Oct 16, 2022

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

@FDUZS
Copy link

FDUZS commented Oct 17, 2022

This issue appears to be resolved with the 2022-10 Cumulative Update for Windows 11 Version 22H2 for x64-based Systems (KB5018427) update. At least for me. Closing this particular issue.

well, it appears exactly after the installation of this cumulative update on my PC...

and, can you find the nerd fonts installed in the font settings (not the classical control panel)? the answer is no for me.

@carlos-zamora
Copy link
Member

/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!

@ghost ghost closed this as completed Oct 26, 2022
@ghost ghost added Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. and removed Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Oct 26, 2022
@kjeske
Copy link

kjeske commented Jan 2, 2025

For me just restarting the Windows Font Cache Service was enough.

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

8 participants