lumixraku / fontsgenerator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generate icon fonts by one command

Forked from: https://github.com/malcolmyu/iconfont-builder

Build Status

Installation

npm install rakufontsgenerator -g

Tests

npm test

CLI usage

rakufontsgenerator -f path/entry.js

a sample entry file

module.exports = {
    // the directory where the svg files are stored
    src: '/Users/hehe/Sites/icons/svg/',
    // the directory that you want to store the generated fonts
    dest:'/Users/hehe/repos/site/static/fonts/',
    // the name of generated fonts
    fontName: 'icomoon',
    // the prefix for the css class
    prefix: 'icon-',
    // whether to generate demo HTML page
    demoPage: 1
}

About


Languages

Language:JavaScript 68.4%Language:HTML 31.6%