Jump to content

How to install a font via the command line?


Recommended Posts

Posted

I am writing what I do for this tips.

First keep your all fonts in a folder where ever you like. Then make a command file (like Install fonts.bat) with following script.

copy *.ttf "%windir%\Fonts"

here you can add another command for another file extensions. Save the file (install fonts.bat) in same folder. It will copy all your desire fonts into fonts folder of your PC.

Now make a reg file (like fonts.reg) with following commands to entry the fonts into registry.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts]

"Times New Roman (TrueType)"="TIMES.TTF"

Now run the reg file with following command

regedit /s Registryfile.reg

You can make a command file with tow command file describe above like following.

copy *.ttf "%windir%\Fonts"

regedit /s fonts.reg

I added a fonts in reg file. You can also a fonts from your list. It will index all fonts after restarts. Keep all the files in same folder with fonts. After all Restart your PC.

bwxqn.gif

  • 4 years later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...