Monday, January 4, 2010

Installing Fonts Using Batch Files

Installing fonts is not really common task performing every day by thousands of people. Still one day you can understand that you are to install fonts with help of batch scripting. Fortunately it's really won't take a lot of time to create a batch file to install several fonts. You should just copy them into Fonts directory and add some keys to the Registry. Here is the batch script you are to execute:
copy font.ttf %systemroot%\fonts
regedit /s font.reg
The only trouble is that you have to create REG-file first. It will take a few moments to add the following lines to font.reg:
REGEDIT4

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts]
"Font Name"="font.ttf"

Put down the real name of your font instead of "Font name" (leave commas). Also don't forget to reboot after the font's installation. That's all!

Translate