w w w . t j e e n a . s e

The digital life of Jörgen Larsson


Installing fonts from a script

On a lab-machine install the font by right-click and Install.
Open regedit and browse to

"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts"

Find the font you just installed and copy the full name. It will be used in the script below.

The fonts will not appear in windows until the computer has been rebooted.

copy "%~dp0DroidSans.ttf" "%windir%\Fonts" /V /Y
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" /v "Droid Sans (TrueType)" /t REG_SZ /d DroidSans.ttf /f

Leave a Reply

Your email address will not be published. Required fields are marked *