title: Install a font using python in Windows
body: <p>I am developing a python script to install a list of fonts in Windows.
  I have a list like this,</p>
  
  <pre><code>fonts_list = ["/path/to/file/myFont1.ttf", "/path/to/file/myFont1.ttf", "/path/to/file/myFont1.ttf"]
  </code></pre>
  
  <p>I simply tried, copying font files using both shutil and os, and after that I tried adding it to Windows registry, even with the admin privileges, it didn't work. Output from the script did not display any errors but there is no any font in Windows Fonts directory which are mentioned in the list.</p>
  
  <pre><code>os.system(reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" /v "FontName (TrueType)")
  </code></pre>
  
  <p>So I started seeking more seeds from web and then I found this one, <a href="https://stackoverflow.com/questions/19767822/installing-ttf-fonts-on-windows-with-python">Installing TTF fonts on windows with python</a>. But it didn't work too. Next I tried calling Windows fontview.exe, but for a list of fonts it is a disaster.</p>
  
  <pre><code>os.system("fontview " + fontsList[0])
  </code></pre>
  
  <p>Is there anyway to install a font in windows programmatically? Or is there any user level directory in Windows to simply copy font files like Linux systems have ~/.fonts and Macs have ~/Library/Fonts? Please help.</p>