svgicons2svgfont
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "svgicons2svgfont", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Read a set of SVG icons and ouput a SVG font", | ||
@@ -29,6 +29,6 @@ "homepage": "https://github.com/nfroidure/svgicons2svgfont", | ||
"devDependencies": { | ||
"mocha": "~1.20.0", | ||
"mocha": "~1.20.1", | ||
"mocha-lcov-reporter": "0.0.1", | ||
"coveralls": "~2.10.0", | ||
"istanbul": "~0.2.10", | ||
"coveralls": "~2.10.1", | ||
"istanbul": "~0.2.13", | ||
"sax": "~0.6.0" | ||
@@ -35,0 +35,0 @@ }, |
@@ -218,3 +218,5 @@ /* | ||
glyph.height = fontHeight; | ||
glyph.width *= ratio; | ||
if(!options.fixedWidth) { | ||
glyph.width *= ratio; | ||
} | ||
} | ||
@@ -293,2 +295,1 @@ glyph.d.forEach(function(cD) { | ||
module.exports = svgicons2svgfont; | ||
@@ -224,2 +224,29 @@ var assert = require('assert') | ||
it("should work with fixedWidth set to true and with custom fontHeight option", function(done) { | ||
generateFontToFile({ | ||
fontName: 'originalicons', | ||
fontHeight: 800, | ||
fixedWidth: true | ||
}, done, '5'); | ||
}); | ||
it("should work with fixedWidth and centerHorizontally set to true and with custom fontHeight option", function(done) { | ||
generateFontToFile({ | ||
fontName: 'originalicons', | ||
fontHeight: 800, | ||
fixedWidth: true, | ||
centerHorizontally: true | ||
}, done, '6'); | ||
}); | ||
it("should work with fixedWidth, normalize and centerHorizontally set to true and with custom fontHeight option", function(done) { | ||
generateFontToFile({ | ||
fontName: 'originalicons', | ||
fontHeight: 800, | ||
normalize: true, | ||
fixedWidth: true, | ||
centerHorizontally: true | ||
}, done, '7'); | ||
}); | ||
}); | ||
@@ -226,0 +253,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
136345
85
608