Register new font for Windows

  • 拷贝字体文件到Windows\Fonts目录
copy "FontName.ttf" "%WINDIR%\Fonts"
  • 然后更新注册表 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" /v "FontName (TrueType)" /t REG_SZ /d FontName.ttf /f