parse-bmfont-xml
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -0,4 +1,15 @@ | ||
//Some versions of GlyphDesigner have a typo | ||
//that causes some bugs with parsing. | ||
//Need to confirm with recent version of the software | ||
//to see whether this is still an issue or not. | ||
var GLYPH_DESIGNER_ERROR = 'chasrset' | ||
module.exports = function parseAttributes(obj) { | ||
if (GLYPH_DESIGNER_ERROR in obj) { | ||
obj['charset'] = obj[GLYPH_DESIGNER_ERROR] | ||
delete obj[GLYPH_DESIGNER_ERROR] | ||
} | ||
for (var k in obj) { | ||
if (k === 'face' || k === 'charset') | ||
if (k === 'face' || k === 'charset') | ||
continue | ||
@@ -8,3 +19,3 @@ else if (k === 'padding' || k === 'spacing') | ||
else | ||
obj[k] = parseInt(obj[k], 10) | ||
obj[k] = parseInt(obj[k], 10) | ||
} | ||
@@ -11,0 +22,0 @@ return obj |
{ | ||
"name": "parse-bmfont-xml", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "parses XML BMFont files into a JavaScript object", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
7843
134