diff --git a/src/gameobjects/text/GetTextSize.js b/src/gameobjects/text/GetTextSize.js index f1199174fe..26d5b017df 100644 --- a/src/gameobjects/text/GetTextSize.js +++ b/src/gameobjects/text/GetTextSize.js @@ -53,7 +53,10 @@ var GetTextSize = function (text, size, lines) lineWidth += context.measureText(line[j]).width; } - lineWidth += letterSpacing * (line.length - 1); + if (line.length > 1) + { + lineWidth += letterSpacing * (line.length - 1); + } } // Adjust for wrapped text