Fonts is a PowerShell module for managing fonts. It helps you install, uninstall, and list fonts on the system.
This module only provides the functionality to manage fonts on the system. To install popular fonts, review the NerdFonts and GoogleFonts modules.
This module supports managing fonts on Linux, macOS, and Windows operating systems.
Install the module from the PowerShell Gallery:
Install-PSResource -Name Fonts
Import-Module -Name FontsUse the module to list, install, and uninstall fonts on your system.
List all fonts installed in the current user context:
Get-FontList all fonts installed in the system context. On Windows this lists the fonts in the C:\Windows\Fonts folder:
Get-Font -Scope AllUsersInstall a font in the current user context. This installs the font in the user font folder and updates the registry so it is available to the current user:
Install-Font -Path 'C:\path\to\font.ttf'Install a font for all users. This must run as an administrator, installs the font in the C:\Windows\Fonts
folder, and updates the registry so it is available to every user on the system:
Install-Font -Path 'C:\path\to\font.ttf' -Scope AllUsersUninstall a font from the current user context. This removes the font from the user font folder and updates the registry to remove it from the current user:
Uninstall-Font -Name 'FontName'Uninstall a font for all users. This must run as an administrator, removes the font from the C:\Windows\Fonts
folder, and updates the registry to remove it from every user on the system:
Uninstall-Font -Name 'FontName' -Scope AllUsersDocumentation is published at psmodule.io/Fonts.
Use PowerShell help and command discovery for module details:
Get-Command -Module Fonts
Get-Help -Name Install-Font -Examples