Socket
Socket
Sign inDemoInstall

svgicons2svgfont

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svgicons2svgfont - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

tests/expected/originalicons5.svg

8

package.json
{
"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 @@

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