fix incorrect glyph offsets when rendering at a projected position
This commit is contained in:
parent
9c8d997acd
commit
a5ed1944be
|
@ -264,9 +264,11 @@ public class DelayedSpriteBatch {
|
||||||
|
|
||||||
float glyphWidth = ((float)glyph.width * scale);
|
float glyphWidth = ((float)glyph.width * scale);
|
||||||
float glyphHeight = ((float)glyph.height * scale);
|
float glyphHeight = ((float)glyph.height * scale);
|
||||||
|
float glyphXoffset = ((float)glyph.xoffset * scale);
|
||||||
|
float glyphYoffset = ((float)glyph.yoffset * scale);
|
||||||
draw(
|
draw(
|
||||||
fontTexture,
|
fontTexture,
|
||||||
currentX + glyph.xoffset, currentY + glyph.yoffset,
|
currentX + glyphXoffset, currentY + glyphYoffset,
|
||||||
glyphWidth, glyphHeight,
|
glyphWidth, glyphHeight,
|
||||||
glyph.srcX, glyph.srcY, glyph.width, glyph.height,
|
glyph.srcX, glyph.srcY, glyph.width, glyph.height,
|
||||||
tint
|
tint
|
||||||
|
|
Loading…
Reference in a new issue