Windows-only font installation module
npm install node-fontinstall-win32
--
To build this library, following components are needed:
-
Visual Studio 2015 with c++ installed
-
Python 2.7
-
Python environment variable PYTHON={python-dir including exe}
const Installer = require('node-fontinstall-win32').FontInstaller;
let installer = new Installer();
installer.install('font.ttf', (err) => {
console.log('done', err);
});