@klonspace/nexfontinstaller

1.0.2 • Public • Published

Nexrender Font Installer

This package is to be used in combination with nexrender to automatically install fonts on a Windows machine running nexrender-core.

Usage

Add links to yout font files in the assets object of your job object, with a type "static", and add a "font" property. The value of the font property is not important.

    ...
      "assets": [
        {
            "src": "/link/to/a/font.ttf",
            "type": "static",
            "font" : true
        }
    ],
    ...

Add this module as an action in the prerender section.

    ...
    "actions": {
        "prerender" :[
            {
                "module" : "C:\\Users\\callu\\Documents\\CODE\\weather renderer\\fontchecker.js"
            }
        ],
        "postrender" : []
    }
    ...

That's it.

This module is not very well tested and works only on windows.

Use at your own risk.

Package Sidebar

Install

npm i @klonspace/nexfontinstaller

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

3.07 kB

Total Files

4

Last publish

Collaborators

  • klonspace