mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 14:38:30 +00:00
Include char top, right and bottom values
This commit is contained in:
parent
b64c85c25c
commit
1ae0cfc619
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue