Corrected currentLine offset

This commit is contained in:
Zeke Chan 2024-07-11 17:34:47 +08:00
parent 187de1042d
commit 9ecd99d173

View file

@ -299,7 +299,7 @@ var GetBitmapTextSize = function (src, round, updateOrigin, out)
} }
xAdvance = 0; xAdvance = 0;
yAdvance = (lineHeight + lineSpacing) * currentLine; yAdvance = (lineHeight + lineSpacing) * (currentLine + 1);
lastGlyph = null; lastGlyph = null;
lineWidths[currentLine] = currentLineWidth; lineWidths[currentLine] = currentLineWidth;