When you install a font, the .ttf is copied to %SystemRoot%\Fonts and a font name Value is added to the registry at:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts
as a type REG_SZ. The data string contains the font file name.
Here is a batch file that adds the "Bitstream Cyberbit (TrueType)" font:
copy <Drive:>\Folder\CYBERBIT.TTF %SystemRoot%\fonts\*.*
regedit /y <Drive:>\Folder\bitstream.reg
exit
where bitstream.reg contains:
REGEDIT4
\[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts\]
"Bitstream Cyberbit (TrueType)"="CYBERBIT.TTF"
You must reboot Windows NT to use the font.
0 comments
Hide comments