https://github.com/suglasp/pwsh_font_installer
Automation script to (un-)install Windows TrueType fonts (.tff). The script processes native the binary .tff files (it reads the files in Big-Endian) to fetch the name and register the name in registry and on the filesystem.
https://github.com/suglasp/pwsh_font_installer
automation font install powershell truetype ttf uninstall
Last synced: about 2 months ago
JSON representation
Automation script to (un-)install Windows TrueType fonts (.tff). The script processes native the binary .tff files (it reads the files in Big-Endian) to fetch the name and register the name in registry and on the filesystem.
- Host: GitHub
- URL: https://github.com/suglasp/pwsh_font_installer
- Owner: suglasp
- Created: 2020-11-20T14:49:49.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-03-17T23:57:21.000Z (about 3 years ago)
- Last Synced: 2025-12-27T22:45:35.397Z (6 months ago)
- Topics: automation, font, install, powershell, truetype, ttf, uninstall
- Language: PowerShell
- Homepage:
- Size: 491 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.txt
Awesome Lists containing this project
README
Windows Font installer script.
.\font_install.ps1 [-install] [-uninstall] [-path ] [-info ]
-install : install new .ttf fonts on the system. If no parameters are provided, the default action is install.
-uninstall : compare .ttf fonts provided and uninstall them from the system.
-path : custom path. Default is current directory.
-info [] : display font information. If no optional filename is provided, we display all fonts from the -path folder.
In the background, the script will copy the .ttf file(s) to the Windows Fonts directory and also edit the registry entries for each font it (un-)installs.
For the registry to work, the script reads the .ttf file(s) natively/binary, and gets the font 'Name' property directly from the .ttf file it self.
This way, the Font name is registered and shown in applications like it should be.
There is one font NotoSans-Regular.ttf provided for sake of the example.
This is the Noto Sans font, you can get this for free from https://www.google.com/get/noto/.
Real world usage:
I wrote this script for a large pool of RDS servers that run virtualized on VMWare Horizon version 8.
In the gold image, once it deploys each instance of a RDS machine, it run's a suite of scripts to ready the VM.
One of these scripts is this font_install that "injects" a whole bunch of .tff files in the instanced machines.