Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hersheytext

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hersheytext - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

13

lib/hersheytext.js

@@ -153,7 +153,10 @@ /**

const item = $('glyph')[index];
font.chars[item.attribs.unicode] = {
name: item.attribs['glyph-name'],
width: item.attribs['horiz-adv-x'] * glyphScaling,
o: item.attribs['horiz-adv-x'] * glyphScaling,
d: glyphScale(item.attribs.d, font.info['units-per-em'], glyphScaling),
// Add all glyphs except space.
if (item.attribs.unicode !== ' ') {
font.chars[item.attribs.unicode] = {
name: item.attribs['glyph-name'],
width: item.attribs['horiz-adv-x'] * glyphScaling,
o: item.attribs['horiz-adv-x'] * glyphScaling,
d: glyphScale(item.attribs.d, font.info['units-per-em'], glyphScaling),
}
}

@@ -160,0 +163,0 @@ });

{
"name": "hersheytext",
"description": "A port of the Hershey engraving fonts to JSON for JavaScript/SVG",
"version": "1.0.0",
"version": "1.1.0",
"main": "lib/hersheytext.js",

@@ -6,0 +6,0 @@ "maintainers": [

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