hersheytext
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -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": [ |
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
1874330
10884