-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
Customized fonts not working #17061
Comments
Did you install that font for all users? Or just for your current user/? We've had persistent problems with fonts that aren't installed for all users 🤷 |
This comment was marked as spam.
This comment was marked as spam.
The problem I'm having is that I've selected font A, but Windows Terminal tells me can't find font B! |
Could you share your settings.json file/? |
@zadjii-msft I believe this occurs because they're using DxRenderer. It gets the font family from the font file here: terminal/src/renderer/dx/DxFontInfo.cpp Lines 257 to 313 in 39f9092
The warning pops up if that family name does not match the font name in the settings. This issue has been solved in two ways:
@ShaneLee-9 As a workaround you can simply use AtlasEngine until 1.21 is released. |
Hi, this is my settings.json |
Now that you have AtlasEngine enabled, does the error go away? If it still happens for some reason, please feel free to temporarily use our Canary build (our nightly version): https://aka.ms/terminal-canary-installer |
AtlasEngine enabled, but the problem persists! |
Hmm... I see, that's surprising. Can you please provide a link to the font so I can download it? |
https://github.com/ryanoasis/nerd-fonts/releases/download/v3.2.1/D2Coding.zip |
Are you certain that this is the exact same font that you're using? It only contains an US English name which is "D2CodingLigature Nerd Font": There's no mention of "FragmentMono". Do you have a different font installed which is called "FragmentMono"? If so, can you provide a download link for that font as well? I know that Fragment Mono exists, but there's no official "Nerd Font" variant for it. "D2CodingLigature Nerd Font" does properly show up in Windows Terminal 1.19.10821.0 for me: Selecting it doesn't result in any error messages for me either. If I manually enter "FragmentMono Nerd Font" the correct font name shows up in the error message: |
The root cause of my problem is that I installed the font "D2CodingLigature Nerd Font Mono" about a week ago. One day I removed "D2CodingLigature Nerd Font Mono" from my computer and installed "FragmentMono Nerd Font". Then I wanted to change my Terminal font to "FragmentMono Nerd Font". Termina then shows the above error message. It actually can't find the "D2CodingLigature Nerd Font Mono" that I used and deleted. After that, no matter what fonts I select in Terminal's settings, it will report that it can't find "D2CodingLigature Nerd Font Mono". |
Oh no. I hope this doesn't mean that your font cache is corrupted. 😣 Can you please try this series of steps? My hope is that this brings the cache back into a good state:
Afterwards, reboot your PC and try installing the "D2CodingLigature Nerd Font" (for all users). |
I tried reinstalling "D2CodingLigature Nerd Font Mono" and it didn't pop up again, but I have a new problem: I can't select any font. It looks like some program is locking up my Terminal fonts! |
Thanks for following up! |
I'd like to apologize for not noticing the extra font face entry in your settings file. 😣 |
Windows Terminal version
1.19.10821.0
Windows build number
10.0.22631.3447
Other Software
No response
Steps to reproduce
Set the font, choose any one of the fonts
Expected Behavior
No response
Actual Behavior
I'm warned that I can't find the "D2Coding" font, but I used this font a week ago and it has now been removed from my system.
As you can see, I can't change the font whether I set it via the GUI or change it via the settings.json configuration file.
I tried reinstalling the lower version 1.19.10573.0 and it still has the above problem.
The text was updated successfully, but these errors were encountered: