Socket
Socket
Sign inDemoInstall

edp-build-iconfont

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

edp-build-iconfont

edp-build iconfont with fontmin, generate iconfont from svgs.


Version published
Weekly downloads
7
increased by133.33%
Maintainers
2
Weekly downloads
 
Created
Source

edp-build-iconfont

edp-build iconfont with fontmin, generate iconfont from svgs.

Usage

edp-build-config.js:

var IconProcessor = require('edp-build-iconfont');

exports.getProcessors = function () {

    var iconProcessor = new IconProcessor({
        files: 'src/svg/*.svg',             // svg path
        fontName: 'font-food',              // font name
        dest: 'src/font'                    // dest path
    });

    return {
        'iconfont': [iconProcessor]
    };

});

Options

config fmOptions as fontmin options

var iconProcessor = new IconProcessor({
    fmOptions: {
        adjust: {
            leftSideBearing: 0,
            rightSideBearing: 0,
            ajdustToEmBox: true,
            ajdustToEmPadding: 0
        },
        startCode: 0xe001
    }
});

NPM

Keywords

FAQs

Package last updated on 15 May 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc