svgfont2svgicons
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -10,2 +10,3 @@ #! /usr/bin/env node | ||
var iconProvider = svgfont2svgicons(); | ||
var unamedIconCount = 0; | ||
@@ -12,0 +13,0 @@ fontStream.pipe(iconProvider); |
{ | ||
"name": "svgfont2svgicons", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Extract SVG icons from an SVG font", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/nfroidure/svgfont2svgicons", |
@@ -35,2 +35,3 @@ /* | ||
, glyph = null | ||
, glyphCount = 0 | ||
, d = '' | ||
@@ -86,2 +87,4 @@ ; | ||
glyph.name = tag.attributes['glyph-name']; | ||
} else { | ||
glyph.name = 'icon' + (++glyphCount); | ||
} | ||
@@ -118,2 +121,4 @@ if('horiz-adv-x' in tag.attributes) { | ||
SVGPathData.Transformer.Y_AXIS_SIMETRY, glyph.height | ||
)).pipe(new SVGPathData.Transformer( | ||
SVGPathData.Transformer.TRANSLATE, 0, descent | ||
)).pipe(new SVGPathData.Encoder()) | ||
@@ -120,0 +125,0 @@ ); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21366
207