diff --git a/Source/Plugins/SpriteFont.js b/Source/Plugins/SpriteFont.js index b992549..5383373 100644 --- a/Source/Plugins/SpriteFont.js +++ b/Source/Plugins/SpriteFont.js @@ -216,8 +216,8 @@ atom.declare( 'LibCanvas.Plugins.SpriteFont.Render', { render: function (lines) { var x, y, w, l, i, from = this.options.shape.from; - for (l = 0, y = from.y.floor(); l < lines.length; l++) { - x = from.x.floor(); + for (l = 0, y = Math.floor(from.y); l < lines.length; l++) { + x = Math.floor(from.x); if (this.options.align != 'left') { w = lines[l].reduce(function (current, elem) { return current + elem.width }, 0); diff --git a/libcanvas-full-compiled.js b/libcanvas-full-compiled.js index d2c063d..e5a3a4d 100644 --- a/libcanvas-full-compiled.js +++ b/libcanvas-full-compiled.js @@ -5405,8 +5405,8 @@ atom.declare( 'LibCanvas.Plugins.SpriteFont.Render', { render: function (lines) { var x, y, w, l, i, from = this.options.shape.from; - for (l = 0, y = from.y.floor(); l < lines.length; l++) { - x = from.x.floor(); + for (l = 0, y = Math.floor(from.y); l < lines.length; l++) { + x = Math.floor(from.x); if (this.options.align != 'left') { w = lines[l].reduce(function (current, elem) { return current + elem.width }, 0);