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. Fonts are managed for the current user by
default; pass -Scope AllUsers to manage fonts for every user, which requires elevated privileges (administrator
on Windows, root on Linux and macOS). On Windows the module also registers or unregisters fonts in the Windows
registry so applications can find them; on Linux and macOS it manages the font files in the appropriate font
directories.
List all fonts installed for the current user:
Get-FontList all fonts installed for all users:
Get-Font -Scope AllUsersInstall a font for the current user:
Install-Font -Path ./MyFont.ttfInstall a font for all users (requires elevated privileges):
Install-Font -Path ./MyFont.ttf -Scope AllUsersUninstall a font for the current user:
Uninstall-Font -Name 'FontName'Uninstall a font for all users (requires elevated privileges):
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