1.3.0 • Published 4 years ago

fontx v1.3.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

FontX

npm node

A npm package to make working with fonts easier.

Installation

npm i fontx --save

You'll need Node.JS 6 or newer.

If you want to use the command-line interface you'll probably want to install it globally so that you can run fontx from anywhere.

npm i -g fontx

CLI

fontx <command>

Commands:
  fontx export <font> <directory>  export all glyphs to a folder
  fontx web <font>                 start the webserver

Options:
  --help, -h     Show help                                             [boolean]
  --version, -v  Show version number                                   [boolean]

API

From example.js:

const fontx = require("./api");

// Initialise the core (required)
const core = fontx.Core("font.ttf");

// Start the Express webserver
fontx.Express(core, 3000);

// Export all glyphs to a folder
fontx.Export(core, "out");

v1.2 Feat: Dynamic SVGs

Introducing Dynamic SVG (v1.2 or later)

1.3.0

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago