-
Notifications
You must be signed in to change notification settings - Fork 34
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
Weird behavior for installed fonts after Windows 11 22H2 update #198
Comments
Had the same problem and just now understood that it broke with the 22H2 update. Thanks for the workaround which at least temporarily fixes the problem. |
I believe the root cause is: microsoft/terminal#3257 |
It's not only on windows-terminal, it's system wide. It also happens to vscode, notepad, any applications. It's like the font was never installed to begin with. |
Same issue here. And for me, it happens after the installation of ADD: |
me too...... |
For me, none of the fonts (installed by |
There's nothing wrong with the font installation, it's an issue with the Windows font cache. You can use the following command to get them working again. Restart-Service -Name FontCache |
Seems like Windows has a feature that can block untrusted fonts from loading outside of the |
TL;DR |
Great hint, thanks a lot for that! Solved the problem for me. |
Hi there, Sorry for being late... Base on DavidZhang73's comment and #180. |
According to this issue, it seems we need to install Nerd Fonts for all users instead of current user. |
I think the problem is that the installer is trying to install the fonts in the user space. Installing to the system to all users, apparently, solve the problem. More info available here -> microsoft/cascadia-code#137 (comment) |
#200 will probably solve this issue. |
Alright, so it's definitely not an issue in this repo, but the discussion finally got to a solution. Thanks! Closing this. |
I think I may have found the root cause of the original issue. InvestigationOn a fresh installed Windows (Windows 10 1809 onward), if we install a font using the normal way:
Windows will automatically create the user font install folder ( Screenshot of the correct permission settings: On the other hand, if we manually create this folder using File Explorer, scoop-nerd-fonts/bucket/FiraCode-NF-Mono.json Lines 42 to 45 in 58f791f
The folder will not have the same permission settings as the user font install folder created by Windows. Screenshot of the wrong permission settings: The mysterious part is that if the user font install folder has the misconfigured permissions problem:
SolutionTo address this issue, we just need to make sure the user font install folder has the correct permission settings. There are a few ways to do this: 1. Use
|
@jonz94 Awesome!! just a typo. - $accessControlList = Get-Acl $userFontInstallDir
+ $accessControlList = Get-Acl $userFontInstallFolder |
TL;DR:
Fonts installed (they were installed before the update) appear to be installed but do not work - installing them manually from the cache folder works.
Not really sure if this should be opened here or elsewhere, could be a manifest problem? Here's what happened:
I have 2 NF fonts installed from this bucket:
firacode-nf-mono
for vscode andhack-nf-mono
for the terminal. They are used with the names "FiraCode NFM" and "Hack NFM", respectively, and have been working fine for months.Day after my windows 11 22h2 update, when I opened windows-terminal I've received the warning that "Hack NFM" coulndn't be found and it defaulted to Consolas. Checked
scoop list
, fonts still there. Checked the "Fonts" control panel applet, fonts are there.But I cannot find them in a list, for example, trying to change Notepad's font. They are not there.
So I uninstall and reinstall both, restart computer, same problem.
BUT - after uninstalling them again, I go to scoops cache folder, see the
.ttf
files, and try to install them manually - by double clicking and hitting "Install". It worked! They appear exactly the same as before in the "Fonts" applet, but now are also listed on the font change dropdown for apps and work correctly as before.Repeated the process 3 times to check my own sanity, it happened as described again and again.
The text was updated successfully, but these errors were encountered: