Include char top, right and bottom values

This commit is contained in:
Richard Davey 2020-08-04 11:24:43 +01:00
parent b64c85c25c
commit 1ae0cfc619

View file

@ -388,6 +388,9 @@ var GetBitmapTextSize = function (src, round, updateOrigin, out)
y: (glyph.yOffset + yAdvance) * scale,
w: glyph.width * scale,
h: glyph.height * scale,
t: yAdvance * scale,
r: gw * scale,
b: lineHeight * scale,
line: currentLine,
glyph: glyph
});
@ -494,6 +497,7 @@ var GetBitmapTextSize = function (src, round, updateOrigin, out)
out.words = words;
out.characters = characters;
out.lines.height = lineHeight;
out.scale = scale;
out.scaleX = src.scaleX;
out.scaleY = src.scaleY;