-
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
Font installation for non-admin users #10
Comments
Updated again...
Changes made to registry will looks like this: A problem is, the Windows Font Cache Service(FontCache) does not automatically detect changes of this registry key and the service does not update font cache at boot time by default to reduce boot time of Windows. A restart of FontCache service can fix missing of installed fonts, but this requires admin rights and a restart may not be a reliable way to accomplish this task. I don't find approaches to build font cache for newly added fonts without admin rights. This might cause problem. My fork of the repository for my personal use installs fonts without admin rights: linyinfeng/scoop-nerd-fonts. I am not actively maintaining the fork and it may be buggy. But it can serves as a simple working example for the issue. |
@linyinfeng Thanks for your information, this is really helpful! |
@h404bi I don't known whether or not fonts installed by the new method can be used by any application. In my test some application can not use these fonts. I believe that compatibility of the new installation method needs more inspection. Maybe both installation methods should be kept. |
Tried to copy fonts to AppData\Local\Microsoft\Windows\Fonts and modified registry keys. Installed fonts in this directory seem work well. Update: |
Allow font installation for non-admin user - Install fonts into user's font directory `$env:LOCALAPPDATA\Microsoft\Windows\Fonts` (administrator rights are **not** required) - This feature required Windows 10 version 1809 and above (build number >= `17763`) - Fallback to install fonts into system fonts directory `$env:windir\Fonts` if Windows version is before 1809 (administrator rights are required) - Add support for scoop global installation (e.g. `scoop install -g SarasaGothic-ttc`) - When `-g` is provided, the fonts will be installed into system fonts directory `$env:windir\Fonts` (administrator rights are required) - Remove `sudo` as dependency And thanks to linyinfeng's information (#10 (comment)) for the inspiration of this commit
From Windows 10 17704 onward, Users have the ability to install fonts without admin rights.
As reference: https://blogs.windows.com/windowsexperience/2018/06/27/announcing-windows-10-insider-preview-build-17704/
The text was updated successfully, but these errors were encountered: