fontellizr

1.4.5 • Public • Published

fontellizr

Module to generate fontello webfont from svg set

Install

$ npm i fontellizr

This module targets Node.js 8 or later. If you want support for older browsers use Babel compiler.

Usage

JavaScript API

var fontellizr = require('fontellizr');

fontellizr({
  svgsSourceDir: './source/svgs',
  fontsDestDir: './assets/fonts/fontello',
  stylesDestDir: './assets/styles/vendor',
  fontelloConfig: {
    ascent: 850,
    units_per_em: 1000,
    hinting: true,
    css_use_suffix: false,
    css_prefix_text: 'icon-',
    name: 'fontello'
  }
});

Cli tool

Create .fontellizrrc file in project directory

{
  "svgsSourceDir": "./svgs",
  "fontsDestDir": "./fonts",
  "stylesDestDir": "./styles",
  "fontelloConfig": {
    "ascent": 850,
    "units_per_em": 1000,
    "hinting": true,
    "css_use_suffix": false,
    "css_prefix_text": "icon-",
    "name": "test"
  }
}

Run fontellizr

$ npx fontellizr

License

MIT © Ablay Keldibek

Readme

Keywords

Package Sidebar

Install

npm i fontellizr

Weekly Downloads

98

Version

1.4.5

License

MIT

Unpacked Size

17.9 kB

Total Files

14

Last publish

Collaborators

  • atomiomi