hersheytext
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -151,2 +151,4 @@ /** | ||
// Change CRLF with just LF | ||
text = text.replace(/\r\n/g, "\n"); | ||
try { | ||
@@ -162,3 +164,5 @@ var font = exports.fonts[options.font] ? exports.fonts[options.font].chars : exports.fonts['futural'].chars; | ||
out.push({type: text[i], d: font[index].d, o: font[index].o}); | ||
} else if (text[i] === ' ') { | ||
} else if (text[i] === "\n") { | ||
out.push({type: 'newline'}); | ||
}else if (text[i] === ' ') { | ||
out.push({type: 'space'}); | ||
@@ -165,0 +169,0 @@ } |
{ | ||
"name": "hersheytext", | ||
"description": "A port of the Hershey engraving fonts to JSON for JavaScript/SVG", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"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
21130
1645234