JSPM

  • Created
  • Published
  • Downloads 265681
  • Score
    100M100P100Q175863F

Read a set of SVG icons and ouput a SVG font

Package Exports

  • svgicons2svgfont

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (svgicons2svgfont) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

svgicons2svgfont Build Status

svgicons2svgfont is a simple tool to merge multiple icons to an SVG font.

'rect', 'line', 'circle', 'ellipsis', 'polyline' and 'polygon' shapes will be converted to pathes. Multiple pathes will be merged.

Transform attributes either on 'g' element or path/shapes elements are currently unsupported.

Usage

NodeJS module:

var svgicons2svgfont = require('svgicons2svgfont');
svgicons2svgfont([
    'icons/directory/icon1.svg',
    'icons/directory/icon2.svg'
  ],
  'font/destination/file.svg',
  options);

CLI (install the module globally):

svgicons2svgfont icons/directory font/destination/file.svg

Grunt plugin:

npm install grunt-svgicons2svgfont

Contributing

Feel free to pull your code if you agree with publishing under the MIT license.